SUBX (SUBtract with eXtend carry)
SUBX
<Description>
This instruction subtracts the source operand and carry flag from the contents of an 8-bit
general register and places the result in the general register.
The source operand can be an 8-bit register value or immediate byte data.
<Instruction Formats>
<Operation>
Rd – (EAs) – C
→
Rd
<Assembly-Language Format>
SUBX
<EAs>, Rd
<Examples>
SUBX R0L, R3L
SUBX #H'32, R5H
<Operand Size>
Byte
<Condition Code>
I: Previous value remains unchanged.
H: Set to "1" if there is a borrow from bit 3;
otherwise cleared to "0."
N: Set to "1" when the result is negative;
otherwise cleared to "0."
Z: Previous value remains unchanged when
the result is zero; otherwise cleared to
"0."
V: Set to "1" if an overflow occurs;
otherwise cleared to "0."
C: Set to "1" if there is a borrow from bit 7;
otherwise cleared to "0."
I
H
N
Z
V
C
—
—
↕
—
↕
↕
↕
↕
Immediate
SUBX
#xx:8, Rd
B
rd
IMM
2
Register direct
SUBX
Rs, Rd
1
E
rs
rd
2
Addressing
mode
Mnem.
Operands
1st byte
Instruction code
No. of
states
2nd byte
3rd byte
4th byte
114
Содержание H8/300 Series
Страница 2: ...H8 300 Programming Manual...