Inc (Increment) - Renesas H8/300 Series Programming Manual

Table of Contents

Advertisement

INC (INCrement)

<Operation>
Rd + 1 → Rd
<Assembly-Language Format>
INC Rd
<Examples>
INC R3L
<Operand Size>
Byte
<Description>
This instruction increments an 8-bit general register and places the result in the 8-bit general
register.
<Instruction Formats>
Addressing
mode
Register direct
Mnem.
Operands
INC
Rd
<Condition Code>
I
— — — —
I: Previous value remains unchanged.
H: Previous value remains unchanged.
N: Set to "1" if the result is negative;
otherwise cleared to "0."
Z: Set to "1" if the result is zero; otherwise
cleared to "0."
V: Set to "1" if an overflow occurs (the
previous value in Rd was H'7F);
otherwise cleared to "0."
C: Previous value remains unchanged.
Instruction code
1st byte
2nd byte
0
A
0
rd
78
H
N
Z
3rd byte
4th byte
INC
V
C
No. of
states
2

Advertisement

Table of Contents
loading

Table of Contents