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

Hide thumbs Also See for H8/300L Series:
Table of Contents

Advertisement

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

Advertisement

Table of Contents
loading

Table of Contents