Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->SUBA
Subtract Memory from accumulator A
Compatibility: 6800, 6802, 6803, 6303R, 6303X, 6303Y
A - M -> A
Condition Code Register
C Set if carry generated, else cleared
V Set on overflow, else cleared
Z Set if result zero, else cleared
N Set if result negative, else cleared
I Not affected
H Not affected
Addressing mode | op | cyc | bytes | Assembler syntax |
Immed.: | 80 | 2 | 2 | SUBA #<exprn.> |
Direct: | 90 | 3 | 2 | SUBA <exprn.> |
Index : | A0 | 4 | 2 | SUBA <exprn.>,X |
Extend: | B0 | 4 | 3 | SUBA <exprn.> |