
Chapter 5
5.3.15 INC – Increment R
Syntax INC R
Encoding
0 0101
01rr rrrr
Operation
R+1
→
R
Status Affected
Z
Description
The contents of data memory R are incremented.
Example
MOV A, @0x10
;
R10 = 0x10
MOV 0x10, A
INC 0x10
;
R10 = 0x11
5.3.16 INCA – Increment R and Place in Acc
Syntax INCA R
Encoding
0 0101
00rr rrrr
Operation
R+1
→
A
Status Affected
Z
Description
The contents of data memory R are increased by one. The result is
placed in the accumulator.
Example
MOV A, @0x5
;
R10 = 0x5
MOV 0x10, A
INCA 0x10
;
Acc = 0x6, R10 unchanged
5.3.17 IOR – Move IOCR to the Acc
Syntax IOR R
Encoding
0 0000
0001 rrrr
Operation
IOCR
→
A
Status Affected
None
Description
Move data from the I/O mapped control register IOCR to the
accumulator.
Example
Obtain contents of IOCF, then store into R10.
IOR 0xF
;
read IOCF
MOV 0x10, A
;
store in R10
EM60000 Series User’s Manual
Instruction Set
•
57
Содержание EM60000 series
Страница 8: ...Contents viii Contents EM60000 Series User s Manual ...
Страница 24: ...Chapter 2 16 Architecture EM60000 Series User s Manual ...
Страница 54: ...Chapter 4 46 Special Function Control EM60000Series User s Manual ...
Страница 80: ...Chapter 5 72 Instruction Set EM60000Series User s Manual ...