Motorola CPU32 Reference Manual page 197

Hide thumbs Also See for CPU32:
Table of Contents

Advertisement

SUBQ
Operation:
Assembler
Syntax:
Attributes:
Description:
Only word and long operations are allowed with address registers, and the condition
codes are not affected. When subtracting from address registers, the entire destina-
tion address register is used, regardless of the operation 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 occurs. Cleared otherwise.
C
Set if a borrow occurs. Cleared otherwise.
Instruction Format:
15
14
13
0
1
0
CPU32
REFERENCE MANUAL
Subtract Quick
Destination – Immediate Data → Destination
SUBQ #〈data〉, 〈ea〉
Size = (Byte, Word, Long)
Subtracts the immediate data (1–8) from the destination operand.
V
C
*
*
12
11
10
9
1
DATA
INSTRUCTION SET
8
7
6
5
1
SIZE
SUBQ
4
3
2
1
EFFECTIVE ADDRESS
MODE
REGISTER
MOTOROLA
0
4-149

Advertisement

Table of Contents
loading

Table of Contents