Subs (Subtract With Sign Extension) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

SUBS (SUBtract with Sign extension)

<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
<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>
Addressing
mode
Register direct
Register direct
Mnem.
Operands
SUBS
#1, Rd
SUBS
#2, Rd
<Condition Code>
I
— — — — — — — —
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.
Instruction code
1st byte
2nd byte
1
B
0
0 rd
1
B
8
0 rd
113
H
N
Z
3rd byte
4th byte
SUBS
V
C
No. of
states
2
2

Advertisement

Table of Contents
loading

Table of Contents