User Manual
C166S V2
Detailed Instruction Description
User Manual
8-280
V 1.7, 2001-01
NEG
Integer Two’s Complement
NEG
Group
Arithmetic Instructions
Syntax
NEG op1
Source Operand(s)
op1
→
WORD
Destination Operand(s)
op1
→
WORD
Operation
(op1)
←
0 - (op1)
Description
Performs a binary 2s complement of the source operand specified by op1. The result is
then stored in op1.
CPU Flags
E
Set if the value of op1 represents the lowest possible negative number.
Cleared otherwise. Used to signal the end of a table.
Z
Set if result equals zero. Cleared otherwise.
V
Set if an arithmetic underflow occurred, i.e. the result cannot be
represented in the word data type. Cleared otherwise.
C
Set if a borrow is generated. Cleared otherwise.
N
Set if the most significant bit of the result is set. Cleared otherwise.
Encoding
E
Z
V
C
N
*
*
*
*
*
Mnemonic
Format
Bytes
NEG
Rw
n
81 n0
2
Summary of Contents for C166S V2
Page 102: ...User Manual C166S V2 C166S V2 Memory Organization User Manual 3 102 V 1 7 2001 01...
Page 116: ...User Manual C166S V2 Instruction Pipeline User Manual 4 116 V 1 7 2001 01...
Page 152: ...User Manual C166S V2 Interrupt and Exception Handling User Manual 5 152 V 1 7 2001 01...
Page 204: ...User Manual C166S V2 Instruction Set User Manual 7 204 V 1 7 2001 01...
Page 420: ...User Manual C166S V2 Detailed Instruction Description User Manual 8 420 V 1 7 2001 01...
Page 432: ...User Manual C166S V2 Summary of CPU Subsystem Registers User Manual 9 432 V 1 7 2001 01...
Page 437: ...437...