Table of Contents Previous topic Next topic
MICROPROCESSOR INSTRUCTION REFERENCE->SUBB
Subtract Memory from accumulator B
Compatibility: 6800, 6802, 6803, 6303R, 6303X, 6303Y
B - M -> B
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.: | C0 | 2 | 2 | SUBB #<exprn.> |
| Direct: | D0 | 3 | 2 | SUBB <exprn.> |
| Index : | E0 | 4 | 2 | SUBB <exprn.>,X |
| Extend: | F0 | 4 | 3 | SUBB <exprn.> |