SUBS (SUBtract with Sign extension)
SUBS
<Description>
This instruction subtracts the immediate value 1 or 2 from word data in a general register.
Differing from the SUB instruction, it does not affect the condition code flags.
The SUBS instruction does not permit byte operands.
<Instruction Formats>
<Operation>
Rd – 1
→
Rd
Rd – 2
→
Rd
<Assembly-Language Format>
SUBS #1,
Rd
SUBS #2,
Rd
<Examples>
SUBS #1, R3
SUBS #2, R5
<Operand Size>
Word
<Condition Code>
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Previous value remains unchanged.
Z: Previous value remains unchanged.
V: Previous value remains unchanged.
C: Previous value remains unchanged.
I
H
N
Z
V
C
—
—
—
— —
— —
—
Register direct
SUBS
#1, Rd
1
B
0
0 rd
2
Register direct
SUBS
#2, Rd
1
B
8
0 rd
2
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
113
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...