INR
Chapter 3. Instruction Set
[
__
1 0
_011
exp J
Cycles:
States:
Addressing:
Flags:
3
10
direct
none
INCREMENT
INR
add,
one to the contents
of
the specified byte. INR affects
all
of
the condition flags
except
the carry flag.
Because INR preserves the carry flag, it can
be
used within multi-byte arithmetic routines for incrementing
character counts
and similar purposes.
Increment Register
Opcode Operand
INR
reg
The operand must specify one
of
the registers A through
E,
H or
L.
The instruction adds one to the contents
of
the specified register.
Increment Memory
[_O
___
O~_D
___
D
___
D~
___
~
Cycles:
Sta
tes:
Addressi
ng:
Flags:
Opcode
INR
5 (4 on 8085)
register
Z,S,P,AC
Operand
M
This instruction increments
by
one the
contents
of the memory location addressed
by
the
Hand
L registers. M
is
a ,ymbolic reference to the H Jnd L registers.
LIO
___
O
_______
O
_____
O~
Cycles:
States:
Addressing:
Flags:
3
10
register indirect
Z,S,P,AC
3-25