Motorola CPU32 Reference Manual page 165

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

NEGX
Operation:
Assembler
Syntax:
Attributes:
Description:
Stores the result in 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.
Normally, the Z condition bit is set via programming before the start
of the operation. This allows successful tests for zero results upon
completion of multiple precision operations.
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
Negate with Extend
0 – (Destination) – X → Destination
NEGX 〈ea〉
Size = (Byte, Word, Long)
Subtracts the destination operand and the extend bit from zero.
V
C
*
*
12
11
10
9
0
0
0
0
INSTRUCTION SET
NOTE
8
7
6
5
0
SIZE
NEGX
4
3
2
1
EFFECTIVE ADDRESS
MODE
REGISTER
MOTOROLA
0
4-117

Advertisement

Table of Contents
loading

Table of Contents