Motorola CPU32 Reference Manual page 192

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

SUB
Operation:
Assembler
Syntax:
Attributes:
Description:
stores the result in the destination. The mode of the instruction indicates which oper-
and is the source, which is the destination, and which is the operand size.
Condition Codes:
X
N
Z
*
*
*
X
Set to the value of 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 is generated. Cleared otherwise.
C
Set if a borrow is generated. Cleared otherwise.
15
14
13
1
1
0
Instruction Fields:
Register field — Specifies any of the eight data registers.
Opmode field:
MOTOROLA
4-144
Destination – Source → Destination
SUB 〈ea〉, Dn
SUB Dn, 〈ea〉
Size = (Byte, Word, Long)
Subtracts the source operand from the destination operand and
V
C
*
*
12
11
10
9
1
REGISTER
Byte
Word
000
001
100
101
INSTRUCTION SET
Subtract
8
7
6
5
OPMODE
Long
Operation
(〈ea〉) – (〈Dn〉) → 〈Dn〉
010
(〈Dn〉) – (〈ea〉) → 〈ea〉
110
SUB
4
3
2
1
EFFECTIVE ADDRESS
MODE
REGISTER
REFERENCE MANUAL
0
CPU32

Advertisement

Table of Contents
loading

Table of Contents