decoration decoration
Stories

GROKLAW
When you want to know more...
decoration
For layout only
Home
Archives
Site Map
Search
About Groklaw
Awards
Legal Research
Timelines
ApplevSamsung
ApplevSamsung p.2
ArchiveExplorer
Autozone
Bilski
Cases
Cast: Lawyers
Comes v. MS
Contracts/Documents
Courts
DRM
Gordon v MS
GPL
Grokdoc
HTML How To
IPI v RH
IV v. Google
Legal Docs
Lodsys
MS Litigations
MSvB&N
News Picks
Novell v. MS
Novell-MS Deal
ODF/OOXML
OOXML Appeals
OraclevGoogle
Patents
ProjectMonterey
Psystar
Quote Database
Red Hat v SCO
Salus Book
SCEA v Hotz
SCO Appeals
SCO Bankruptcy
SCO Financials
SCO Overview
SCO v IBM
SCO v Novell
SCO:Soup2Nuts
SCOsource
Sean Daly
Software Patents
Switch to Linux
Transcripts
Unix Books

Gear

Groklaw Gear

Click here to send an email to the editor of this weblog.


You won't find me on Facebook


Donate

Donate Paypal


No Legal Advice

The information on Groklaw is not intended to constitute legal advice. While Mark is a lawyer and he has asked other lawyers and law students to contribute articles, all of these articles are offered to help educate, not to provide specific legal advice. They are not your lawyers.

Here's Groklaw's comments policy.


What's New

STORIES
No new stories

COMMENTS last 48 hrs
No new comments


Sponsors

Hosting:
hosted by ibiblio

On servers donated to ibiblio by AMD.

Webmaster
Memory register vs a register? | 661 comments | Create New Account
Comments belong to whoever posts them. Please notify us of inappropriate comments.
Memory register vs a register?
Authored by: Anonymous on Friday, March 29 2013 @ 10:43 AM EDT
Also, as best I can remember, BCD is integer (or fixed point), not floating
point.

You misremember. Any base, 2 or 10 or 16 or whatever, can be used to represent
numbers in either fixed- or floating-point formats. Some languages (e.g., Cobol,
PL/I) require support for floating-point-decimal in the language. Some computers
(e.g., Honeywell DPS-8 mainframes) support floating-point-decimal in the
hardware instruction set.

[Caveat: this based on personal knowledge derived partly from writing the
manufacturer-supplied binary-to-decimal floating-point conversions for
Fortran-77 (and other languages) for the DPS-8 (and other computers).]

[ Reply to This | Parent | # ]

Memory register vs a register?
Authored by: Anonymous on Tuesday, April 02 2013 @ 05:38 AM EDT

BCD is Binary Coded Decimal and used 10 of the 16 possible 4 bit combinations. When packed 2 to a byte (each nybble a separate BCD digit) conversion requires more than a nop.

Consider the addition of binary representation 00100010 = 0x42 (in hexadecimal) + 00001001 = 0x09:

  • in BCD: 0x42 is decimal 42 → 0x42 + 0x09 → 42 + 9 = 51 → 0x51 = 01010001
  • in normal: 0x42 + 0x09 = 0x4B = 01001011
conversion between the two results is not a nop!

On a Z80 a DAA would be required but on a 6502 a SED prior to the ADC would do the addition directly in BCD (without the SED, ie CLD, the ADC would be done in normal binary).

IIRC the 6502 had inspiration from a PDP-8.

[ Reply to This | Parent | # ]

Groklaw © Copyright 2003-2013 Pamela Jones.
All trademarks and copyrights on this page are owned by their respective owners.
Comments are owned by the individual posters.

PJ's articles are licensed under a Creative Commons License. ( Details )