Intel 80C188EC User Manual page 462

Hide thumbs Also See for 80C188EC:
Table of Contents

Advertisement

Name
NEG
Negate:
NEG dest
Subtracts the destination operand,
which may be a byte or a word, from 0
and returns the result to the desti-
nation. This forms the two's
complement of the number, effectively
reversing the sign of an integer. If the
operand is zero, its sign is not
changed. Attempting to negate a byte
containing –128 or a word containing –
32,768 causes no change to the
operand and sets OF.
Instruction Operands:
NEG reg
NEG mem
NOP
No Operation:
NOP
Causes the CPU to do nothing.
Instruction Operands:
none
NOT
Logical Not:
NOT dest
Inverts the bits (forms the one's
complement) of the byte or word
operand.
Instruction Operands:
NOT reg
NOT mem
NOTE: The three symbols used in the Flags Affected column are defined as follows:
– the contents of the flag remain unchanged after the instruction is executed
? the contents of the flag is undefined after the instruction is executed
ü
the flag is updated after the instruction is executed
Table C-4. Instruction Set (Continued)
Description
INSTRUCTION SET DESCRIPTIONS
Operation
When Source Operand is a Byte:
(dest) ← FFH – (dest)
(dest) ← (dest) + 1 (affecting flags)
When Source Operand is a Word:
(dest) ← FFFFH – (dest)
(dest) ← (dest) + 1 (affecting flags)
None
When Source Operand is a Byte:
(dest) ← FFH – (dest)
When Source Operand is a Word:
(dest) ← FFFFH – (dest)
Flags
Affected
ü
AF
ü
CF
DF –
IF –
ü
OF
ü
PF
ü
SF
TF –
ü
ZF
AF –
CF –
DF –
IF –
OF –
PF –
SF –
TF –
ZF –
AF –
CF –
DF –
IF –
OF –
PF –
SF –
TF –
ZF –
C-31

Advertisement

Table of Contents
loading

This manual is also suitable for:

80c186ec

Table of Contents