Motorola CPU32 Reference Manual page 202

M68300 series central processor unit
Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

SUB
Operation:
Assembler
Syntax:
Attributes:
Subtract
Destination - Source
=>
Destination
SUB (ea), On
SUB On, (ea)
Size
=
(Byte, Word, Long)
SUB
Description:
Subtracts the source operand from the destination operand and stores the result in the
destination. The mode of the instruction indicates which operand is the source, which is the
destination, and which is the operand size.
Condition Codes:
x
N
z
v
C
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
12
11
10
9
8
7
1
1
0
1
REGISTER
OPMODE
Instruction Fields:
Register field - Specifies any of the eight data registers.
Opmode field:
6
Long
Operation
5
Byte
000
100
Word
001
101
010
«ea» - «Dn»
=>
(On)
110
«On» - «ea»
=>
(ea)
CPU32 REFERENCE MANUAL
INSTRUCTION SET
4
3
2
o
EFFECTIVE ADDRESS
MODE
I
REGISTER
MOTOROLA
4-149

Advertisement

Table of Contents
loading

Table of Contents