PIC18CXX2
NEGF
Negate f
NOP
No Operation
Syntax:
Operands:
[label] NEGF f,a
Syntax:
[ label ] NOP
None
0 ≤ f ≤ 255
Operands:
Operation:
Status Affected:
Encoding:
a
[0,1]
No operation
None
Operation:
( f ) + 1 → f
Status Affected:
Encoding:
N,OV, C, DC, Z
0000
1111
0000
xxxx
0000
xxxx
0000
xxxx
0110
110a
ffff
ffff
Description:
Words:
No operation.
Description:
Location ’f’ is negated using two’s
complement. The result is placed in
the data memory location 'f'. If ’a’ is
0, the Access Bank will be
1
1
Cycles:
Q Cycle Activity:
Q1
selected, overriding the BSR value.
If ’a’ = 1, then the bank will be
selected as per the BSR value.
Q2
Q3
Q4
Decode
No
No
No
operation
operation
operation
Words:
Cycles:
1
1
Example:
Q Cycle Activity:
Q1
Q2
Q3
Q4
None.
Decode
Read
register ’f’
Process
Data
Write
register ’f’
NEGF
REG, 1
Example:
Before Instruction
REG
=
0011 1010 [0x3A]
1100 0110 [0xC6]
After Instruction
REG
=
7/99 Microchip Technology Inc.
Preliminary
DS39026B-page 219