ADC (hash)$nn

From C64-Wiki
(Redirected from ADC (hasg)$nn)
Jump to navigationJump to search
Stub This article is very short and not very detailed. Please help to improve it.
Mnemonic: ADC #$nn
2. Schreibweise: {{{2. Schreibweise}}}
Opcode: $69
Operator(en): $nn
Byte count: 2
Command type: Arithmetic- and logic command
Address mode: Immediate
register flags:
Carry Flag
Negative Flag
Overflow Flag
Zero Flag
Cycles: 2


The ADC (#)$nn instruction is an assembly language command used to add a constant value to the contents of the accumulator, including the carry flag if it is set. Its addressing mode is Immediate.

If the carry flag is set, an additional 1 is added to the result. The result is stored back in the accumulator. If the result exceeds 255 ($FF), the carry flag is set to indicate an overflow. When the decimal flag is set, the addition is performed in Binary-Coded Decimal (BCD) mode.

ADC #Operand


Function flow

Ass befehl 69.gif

Explanation of the mnemonic shortcut

ADC ADd with Carry
Add accumulator with operator and carry flag

Example

Look at ADC $hhll.

See also

Links