|System Specification for C65||Fred Bowen||March 1, 1991|
Add memory to accumulator with carry
|base page indexed X|
|absolute indexed X|
|absolute indexed Y|
|base page indexed indirect X|
|base page indirect indexed Y|
|base page indirect indexed Z|
|2||3||base page non-indexed, or indexed X or Y|
|3||4||absolute non-indexed, or indexed X or Y|
|2||5||base page indexed indirect X, or indirect indexed Y or Z|
The ADC instructions add data fetched from memory and carry to the contents of the accumulator. The results of the add are then stored in the accumulator. If the "D" or Decimal Mode flag, in the processor status register, then a Binary Coded Decimal (BCD) add is performed.
The "N" or Negative flag will be set if the sum is negative, otherwise it is cleared. The "V" or Overflow flag will be set if the sign of the sum is different from the sign of both addends, indicating a signed overflow. Otherwise, it is cleared. The "Z" or Zero flag is set if the sum (stored into the accumulator) is zero, otherwise, it is cleared. The "C" or carry is set if the sum of the unsigned addends exceeds 255 (binary mode) or 99 (decimal mode).
Flags N V E B D I Z C N V - - - - Z C
|This page has been created by Sami Rautiainen.|
|Read the small print.||Last updated November 29, 2002.|