Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->SUBA
SUBA Subtract Memory from accumulator A
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 | Assembler syntax |
Immed.: | SUBA #<exprn.> |
Direct: | SUBA <exprn.> |
Index X: | SUBA <exprn.>,X |
Index Y: | SUBA <exprn.>,Y |
Extend: | SUBA <exprn.> |