PIC17C75X
NEGW
Negate W
NOP
No Operation
[ label ] NOP
None
Syntax:
[label] NEGW f,s
Syntax:
Operands:
0 ≤ F ≤ 255
Operands:
Operation:
Status Affected:
Encoding:
Description:
Words:
s
[0,1]
No operation
None
Operation:
WREG + 1 → (f);
WREG + 1 → s
0000
0000
0000
0000
Status Affected:
Encoding:
OV, C, DC, Z
No operation.
0010
110s
ffff
ffff
1
1
WREG is negated using two’s comple-
ment. If 's' is 0 the result is placed in
WREG and data memory location 'f'. If
's' is 1 the result is placed only in data
memory location 'f'.
Description:
Cycles:
Q Cycle Activity:
Q1
Q2
Q3
No
Q4
Decode
No
No
operation
Words:
Cycles:
1
1
operation
operation
Q Cycle Activity:
Q1
Example:
None.
Q2
Q3
Q4
Decode
Read
register 'f'
Process
Data
Write
register 'f'
and other
specified
register
NEGW
REG,0
Example:
Before Instruction
WREG
REG
=
=
0011 1010[0x3A],
1010 1011[0xAB]
After Instruction
WREG
REG
=
=
1100 0111[0xC6]
1100 0111[0xC6]
DS30264A-page 206
1997 Microchip Technology Inc.