Download Print this page

Siemens SAB 80515 Series User Manual page 160

8-bit single-chip microcontroller family

Advertisement

INC
<byte>
Function:
Increment
Description:
INC increments the indicated variable by 1. An original value of 0FF H will overflow
to 00 H . No flags are affected. Three addressing modes are allowed: register, direct,
or register-indirect.
Note:
When this instruction is used to modify an output port, the value used as the original
port data will be read from the output data latch, not the input pins.
Example:
Register 0 contains 7E H (01111110B). Internal RAM locations 7E H and 7F H
contain 0FF H and 40 H , respectively. The instruction sequence
INC
INC
INC
will leave register 0 set to 7F H and internal RAM locations 7E H and 7F H holding
(respectively) 00 H and 41 H .
INC
A
Operation:
INC
(A) ← (A) + 1
Encoding:
0 0 0 0
Bytes:
1
Cycles:
1
INC
Rn
Operation:
INC
(Rn) ← (Rn) + 1
Encoding:
0 0 0 0
Bytes:
1
Cycles:
1
Semiconductor Group
@R0
R0
@R0
0 1 0 0
1 r r r
*
160
Instruction Set

Advertisement

loading

This manual is also suitable for:

Sab 80c515Sab 80c535Sab 80535Sab 80515k