Changes

Jump to: navigation, search

6502 Math

403 bytes added, 22:48, 14 January 2020
no edit summary
[[Category:6502]]The 6502 processor is limited to very simple math operations, and various processor flags affect these operations.
 
== Decimal Mode ==
 
The 6502 can perform math in binary or decimal mode.
 
In binary mode, operations are performed on a single 8-bit value. Numbers may be treated as signed or unsigned (the math is the same).
 
In decimal mode, the each byte is treated as two decimal digits. Numbers are counted as positive.
 
The rest of this page deals with binary mode (decimal mode operates in mostly the same way).
== Addition ==

Navigation menu