124
2.2.54 SUBS (subtract with sign extension)
Operation
Rd - 1
→
Rd
Rd - 2
→
Rd
Assembly-Language Format
SUBS #1, Rd
SUBS #2, Rd
Operand Size
Word
Condition Code
I
H
N
Z
V
C
—
—
—
—
—
—
—
—
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.
Description
This instruction subtracts the immediate value 1 or 2 from word data in a general register.
Unlike the SUB instruction, it does not affect the condition code flags.
The SUBS instruction does not permit byte operands.
Instruction Formats and Number of Execution States
Instruction code
Addressing
mode
Mnem.
Operands 1 st byte
2nd byte
3rd byte
4th byte
No. of
states
Register direct
SUBS
#1, Rd
1
B
0
0
rd
2
Register direct
SUBS
#2, Rd
1
B
8
0
rd
2
Summary of Contents for H8/300L Series
Page 1: ...H8 300L Series Programming Manual ...
Page 6: ...iv ...
Page 8: ...2 ...
Page 11: ......
Page 14: ......
Page 46: ......
Page 48: ......
Page 60: ......
Page 83: ......
Page 116: ......
Page 150: ...144 ...
Page 151: ......
Page 156: ...150 ...