English
Language : 

PIC17C7XX Datasheet, PDF (212/328 Pages) Microchip Technology – High-Performance 8-Bit CMOS EPROM Microcontrollers with 10-bit A/D
PIC17C7XX
INFSNZ
Increment f, skip if not 0
Syntax:
[label] INFSNZ f,d
Operands:
0 ≤ f ≤ 255
d ∈ [0,1]
Operation:
(f) + 1 → (dest),
skip if not 0
Status Affected: None
Encoding:
0010 010d ffff ffff
Description:
The contents of register 'f' are incre-
mented. If 'd' is 0 the result is placed in
WREG. If 'd' is 1 the result is placed
back in register 'f'.
If the result is not 0, the next instruction,
which is already fetched, is discarded,
and an NOP is executed instead making
it a two-cycle instruction.
Words:
1
Cycles:
1(2)
Q Cycle Activity:
Q1
Decode
If skip:
Q1
No
operation
Q2
Read
register 'f'
Q2
No
operation
Q3
Process
Data
Q4
Write to
destination
Q3
No
operation
Q4
No
operation
Example:
HERE
ZERO
NZERO
INFSNZ REG, 1
Before Instruction
REG = REG
After Instruction
REG =
If REG =
PC =
If REG =
PC =
REG + 1
1;
Address (ZERO)
0;
Address (NZERO)
IORLW
Syntax:
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
Cycles:
Q Cycle Activity:
Q1
Decode
Inclusive OR Literal with WREG
[ label ] IORLW k
0 ≤ k ≤ 255
(WREG) .OR. (k) → (WREG)
Z
1011 0011 kkkk kkkk
The contents of WREG are OR’ed with
the eight bit literal 'k'. The result is
placed in WREG.
1
1
Q2
Read
literal 'k'
Q3
Process
Data
Q4
Write to
WREG
Example:
IORLW
Before Instruction
WREG = 0x9A
After Instruction
WREG = 0xBF
0x35
DS30289A-page 212
© 1998 Microchip Technology Inc.