gc80c510 CORERIVER Semiconductor, gc80c510 Datasheet - Page 141

no-image

gc80c510

Manufacturer Part Number
gc80c510
Description
Eprom/rom 8-bit Turbo Microcontrollers
Manufacturer
CORERIVER Semiconductor
Datasheet
INC
MiDAS1.1 Family
INC A
INC Rn
Description:
Operation:
Operation:
<byte>
Encoding:
Encoding:
Function:
Example:
Cycles:
Cycles:
Bytes:
Bytes:
Increment
INC increments the indicated variable by 1. An original value of 0FFh will
overflow to 00h. 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.
Register 0 contains 7Eh (01111110b). Internal RAM locations 7Eh and 7Fh
contain 0FFh and 40H, respectively. The instruction sequence,
INC @R0
INC R0
INC @R0
will leave register 0 set to 7Fh and internal RAM locations 7Eh and 7Fh holding
00h and 41h, respectively.
1
1
INC
(A)
1
1
INC
(Rn)
0
0
0
0
(A) + 1
(Rn) + 1
0
0
0
0
0 1 0 0
1
r
Page 141 of 211
r
r

Related parts for gc80c510