Instruction Description Format - Motorola CPU32 Reference Manual

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

INSTRUCTION NAME
OPERATION DESCRIPTION
ASSEMBLER SYNTAX FOR THIS INSTRUCTION
SIZE ATTRIBUTE
TEXT DESCRIPTION OF INSTRUCTION OPERATION
CONDITION CODE EFFECTS
INSTRUCTION FORMAT (THIS SPECIFIES THE BIT PATTERN AND
FIELDS OF THE OPERATION AND COMMAND WORDS, AND ANY
OTHER WORDS THAT ARE ALWAYS PART OF THE
INSTRUCTION.) THE EFFECTIVE ADDRESS EXTENSIONS ARE
NOT EXPLICITLY ILLUSTRATED. THE EXTENSION WORDS (IF
ANY) FOLLOW IMMEDIATELY AFTER THE ILLUSTRATED
PORTIONS OF THE INSTRUCTIONS.
MEANINGS AND ALLOWED VALUES (FOR THE VARIOUS
FIELDS REQUIRED BY THE INSTRUCTION FORMAT)
MOTOROLA
4-14
Figure 4-2 Instruction Description Format
INSTRUCTION SET
ABCD
Operation:
Source
10
Assembler
ABCD Dy,Dx
Syntax:
ABCD - (Ay), - (Ax)
Attributes:
Size = (Byte)
Description:
Adds the source operation
and stores the result in the destinatio
decimal arithmetic. The operands, w
different ways:
1. Data register to data register:
specified in the instruction.
2. Memory to memory: The opera
addressing mode using the add
Condition Codes:
X
N
Z
V
U
U
X Set the same as the carry bit.
N Undefined.
Z Cleared if the result is nonzero. Unc
V Undefined.
C Set if a decimal carry was generate
NOTE
Normally the Z condition code bit is
an operation. This allows successf
of multiple-precision operations.
Instruction Format:
15
14
13
12
11
1
1
0
0
R/M Field: 0 = Data Register to Data Register
If R/M = 0, Rx and Ry are Data Registers
If R/M = 1, Rx and Ry are Address Registers for th
Instruction Fields:
Register Rx field - Specifies the destin
If R/M = 0, specifies a data register
If R/M = 1, specifies an address regi
R/M field - Specifies the operand addr
0 - the operation is data register to
1 - the operation is memory to mem
Register Ry field - Specifies the sourc
If R/M = 0, specifies a data regist
If R/M = 1, specifies an address
REFERENCE MANUAL
Add Decim
+ Destination + X
C
10
REGISTER Rx
1
CPU32

Advertisement

Table of Contents
loading

Table of Contents