P12C508 Microchip Technology, P12C508 Datasheet - Page 43

no-image

P12C508

Manufacturer Part Number
P12C508
Description
8-Pin / 8-Bit CMOS Microcontroller
Manufacturer
Microchip Technology
Datasheet
INCF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
INCFSZ
Syntax:
Operands:
Operation:
Status Affected: None
Encoding:
Description:
Words:
Cycles:
Example:
1996 Microchip Technology Inc.
Before Instruction
After Instruction
Before Instruction
After Instruction
CNT
Z
CNT
Z
PC
CNT
if CNT
PC
if CNT
PC
Increment f
[ label ]
0
d
(f) + 1
The contents of register 'f' are incre-
mented. If 'd' is 0 the result is placed in
the W register. If 'd' is 1 the result is
placed back in register 'f'.
1
1
INCF
=
=
=
=
Increment f, Skip if 0
[ label ]
0
d
(f) + 1
The contents of register 'f' are incre-
mented. 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 0, then the next instruc-
tion, which is already fetched, is dis-
carded and an NOP is executed
instead making it a two cycle instruc-
tion.
1
1(2)
HERE
CONTINUE •
=
=
=
=
=
0010
0011
f
f
[0,1]
[0,1]
0xFF
0
0x00
1
address (HERE)
CNT + 1;
0,
address (CONTINUE);
0,
address (HERE +1)
31
31
CNT,
(dest)
(dest), skip if result = 0
INCF f,d
INCFSZ f,d
INCFSZ
GOTO
10df
11df
1
ffff
ffff
LOOP
CNT,
Advance Information
1
IORLW
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
IORWF
Syntax:
Operands:
Operation:
Status Affected: Z
Encoding:
Description:
Words:
Cycles:
Example:
Before Instruction
After Instruction
Before Instruction
After Instruction
W
W
Z
RESULT =
W
RESULT =
W
Z
=
=
=
[ label ]
0
(W) .OR. (k)
The contents of the W register are
OR’ed with the eight bit literal 'k'. The
result is placed in the W register.
1
1
IORLW
0x9A
0xBF
0
[ label ]
0
d
(W).OR. (f)
Inclusive OR the W register with regis-
ter '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'.
1
1
IORWF
=
=
=
Inclusive OR literal with W
Inclusive OR W with f
1101
0001
k
f
[0,1]
0x91
0x93
0
0x13
0x13
PIC12C5XX
31
255
0x35
IORLW k
IORWF
kkkk
00df
(dest)
(W)
DS40139A-page 43
RESULT, 0
kkkk
ffff
f,d

Related parts for P12C508