Motorola CPU32 Reference Manual page 163

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

NEG
Operation:
Assembler
Syntax:
Attributes:
Description:
the destination location.
Condition Codes:
X
N
Z
*
*
*
X
Set the same as the carry bit.
N
Set if the result is negative. Cleared otherwise.
Z
Set if the result is zero. Cleared otherwise.
V
Set if an overflow occurs. Cleared otherwise.
C
Cleared if the result is zero. Set otherwise.
Instruction Format:
15
14
13
0
1
0
Instruction Fields:
Size field — Specifies the size of the operation.
00 — Byte operation
01 — Word operation
10 — Long operation
CPU32
REFERENCE MANUAL
0 – (Destination) → Destination
NEG 〈ea〉
Size = (Byte, Word, Long)
Subtracts the destination operand from zero and stores the result in
V
C
*
*
12
11
10
9
0
0
1
0
INSTRUCTION SET
Negate
8
7
6
5
0
SIZE
NEG
4
3
2
1
EFFECTIVE ADDRESS
MODE
REGISTER
MOTOROLA
0
4-115

Advertisement

Table of Contents
loading

Table of Contents