First page Back Continue Last page Overview Graphics
Arithmetic Instructions: Subtraction
The following instructions subtract the value stored at the address given by the operand from the value in a register and store the results back into the register.
- SUBA MEM ;A-MEM->A
- SUBB MEM ;B-MEM->B
- SUBD MEM ;D-(MEM:MEM+1)->D
- SBA ;A-B->A
SUBA and SUBB are 8-bit. The result of the subtraction is left in internal register A or B. SUBD is a 16-bit subtraction. The result of the subtraction is placed in register D. All addressing modes are available with these instructions.