We've just updated MediaWiki and its underlying software. If anything doesn't look or work quite right, please mention it to us. --RanAS

Binary Coded Decimal: Difference between revisions

From SnesLab
Jump to: navigation, search
(see also DAA/DAS)
m (Xetheria moved page BCD to Binary Coded Decimal: expand acronym)
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
'''BCD''' stands for Binary Coded Decimal.
'''BCD''' stands for Binary Coded Decimal.
On the [[SPC700]], the [[DAA]] and [[DAS]] commands will convert a regular binary/hexadecimal value to a packed BCD value.  The high nybble will be the tens column and the low nybble will be the ones column.  The value of each BCD nybble will not exceed 0x9.


=== See Also ===
=== See Also ===
* [[DAA]]
* [[CLD]]
* [[DAS]]
* [[SED]]
* [[Decimal Mode]]


[[Category:ASM]]
[[Category:ASM]]
[[Category:Inherited from 6502]]
[[Category:Inherited from 6502]]
[[Category:Official Jargon]]

Latest revision as of 17:17, 20 September 2024

BCD stands for Binary Coded Decimal.

On the SPC700, the DAA and DAS commands will convert a regular binary/hexadecimal value to a packed BCD value. The high nybble will be the tens column and the low nybble will be the ones column. The value of each BCD nybble will not exceed 0x9.

See Also