![TENX TECHNOLOGY TM57PE10 User Manual Download Page 39](http://html.mh-extra.com/html/tenx-technology/tm57pe10/tm57pe10_user-manual_1087886039.webp)
Advance Information
UM-TM57PE10_E
8-Bit Microcontroller
39
tenx technology inc.
Preliminary
Rev 1.4, 2012/01/19
INCF
Increment "f"
Syntax
INCF f [,d]
Operands
f : 00h ~ 7Fh
Operation
(destination) ← (f) + 1
Status Affected
Z
OP-Code
00 1010 dfff ffff
Description
The contents of register 'f' are incremented. If 'd' is 0, the result is placed
in the W register. If 'd' is 1, the result is placed back in register 'f'.
Cycle
1
Example
INCF CNT, 1
B : CNT = 0xFF, Z = 0
A : CNT = 0x00, Z = 1
INCFSZ
Increment "f", Skip if 0
Syntax
INCFSZ f [,d]
Operands
f : 00h ~ 7Fh, d : 0, 1
Operation
(destination) ← (f) + 1, skip next instruction if result is 0
Status Affected
-
OP-Code
00 1111 dfff ffff
Description
The contents of register 'f' are incremented. If 'd' is 0, the result is placed
in the W register. If 'd' is 1, the result is placed back in register 'f'. If the
result is 1, the next instruction is executed. If the result is 0, a NOP is
executed instead, making it a 2 cycle instruction.
Cycle
1 or 2
Example
LABEL1 INCFSZ CNT, 1
GOTO LOOP
CONTINUE
B : PC = LABEL1
A : CNT = CNT + 1
if CNT = 0, PC = CONTINUE
if CNT
≠ 0, PC = 1
IORLW
Inclusive OR Literal with W
Syntax
IORLW k
Operands
k : 00h ~ FFh
Operation
(W) ← (W) OR k
Status Affected
Z
OP-Code
01 1010 kkkk kkkk
Description
The contents of the W register are OR’ed with the eight-bit literal 'k'. The
result is placed in the W register.
Cycle
1
Example
IORLW 0x35
B : W = 0x9A
A : W = 0xBF, Z = 0
IORWF
Inclusive OR W with "f"
Syntax
IORWF f [,d]
Operands
f : 00h ~ 7Fh, d : 0, 1
Operation
(destination) ← (W) OR k
Status Affected
Z
OP-Code
00 0100 dfff ffff
Description
Inclusive OR the W register with register 'f'. If 'd' is 0, the result is placed in
the W register. If 'd' is 1, the result is placed back in register 'f'.
Cycle
1
Example
IORWF RESULT, 0
B : RESULT = 0x13, W = 0x91
A : RESULT = 0x13, W = 0x93, Z = 0