SUB
Subtract From Accumulator
7-174
Syntax SUB
dma
[,
shift
] Direct addressing
SUB
dma
,16 Direct with left shift of 16
SUB
ind
[,
shift
[, AR
n
]] Indirect addressing
SUB
ind
,16[, AR
n
] Indirect with left shift of 16
SUB #
k
Short immediate
SUB #
lk
[,
shift
] Long immediate
Operands dma: 7 LSBs of the data-memory address
shift: Left shift value from 0 to 15 (defaults to 0)
n: Value from 0 to 7 designating the next auxiliary register
k: 8-bit short immediate value
lk: 16-bit long immediate value
ind: Select one of the following seven options:
* *+ *– *0+ *0– *BR0+ *BR0–
SUB
dma
[,
shift
]
1514131211109876543210
0
011 shift 0 dma
SUB
dma,
16
1514131211109876543210
0
11001010 dma
SUB
ind
[,
shift
[, AR
n
]]
1514131211109876543210
0
011 shift 1 ARU N NAR
Note: ARU, N, and NAR are defined in Section 6.3,
Indirect Addressing Mode
(page 6-9).
SUB
ind
,16 [, AR
n
]
1514131211109876543210
0
11001011 ARU N NAR
Note: ARU, N, and NAR are defined in Section 6.3,
Indirect Addressing Mode
(page 6-9).
SUB #
k
1514131211109876543210
1
0111010 k
SUB #
lk
[,
shift
]
1514131211109876543210
1
01111111010 shift
lk
Opcode