CPU12
INSTRUCTION SET OVERVIEW
MOTOROLA
REFERENCE MANUAL
5-21
5.25 Condition Code Instructions
Condition code instructions are special forms of mathematical and data transfer in-
structions that can be used to change the condition code register.
shows
instructions that can be used to manipulate the CCR.
5.26 Stop and Wait Instructions
As shown in
, there are two instructions that put the CPU12 in an inactive
state that reduces power consumption.
The stop instruction (STOP) stacks a return address and the contents of CPU registers
and accumulators, then halts all system clocks.
The wait instruction (WAI) stacks a return address and the contents of CPU registers
and accumulators, then waits for an interrupt service request; however, system clock
signals continue to run.
Table 5-25 Pointer and Index Calculation Instructions
Mnemonic
Function
Operation
LEAS
Load Result of Indexed Addressing Mode
Effective Address Calculation
into Stack Pointer
r
±
Constant
⇒
SP or
(r)
+
(Accumulator)
⇒
SP
r = X, Y, SP, or PC
LEAX
Load Result of Indexed Addressing Mode
Effective Address Calculation
into X Index Register
r
±
Constant
⇒
X or
(r)
+
(Accumulator)
⇒
X
r = X, Y, SP, or PC
LEAY
Load Result of Indexed Addressing Mode
Effective Address Calculation
into Y Index Register
r
±
Constant
⇒
Y or
(r)
+
(Accumulator)
⇒
Y
r = X, Y, SP, or PC
Table 5-26 Condition Codes Instructions
Mnemonic
Function
Operation
ANDCC
Logical AND CCR with Memory
(CCR)
•
(M)
⇒
CCR
CLC
Clear C Bit
0
⇒
C
CLI
Clear I Bit
0
⇒
I
CLV
Clear V Bit
0
⇒
V
ORCC
Logical OR CCR with Memory
(CCR)
+
(M)
⇒
CCR
PSHC
Push CCR onto Stack
(SP) – 1
⇒
SP; (CCR)
⇒
M
(SP)
PULC
Pull CCR from Stack
(M
(SP)
)
⇒
CCR; (SP)
+
1
⇒
SP
SEC
Set C Bit
1
⇒
C
SEI
Set I Bit
1
⇒
I
SEV
Set V Bit
1
⇒
V
TAP
Transfer A to CCR
(A)
⇒
CCR
TPA
Transfer CCR to A
(CCR)
⇒
A
Summary of Contents for CPU12
Page 8: ...MOTOROLA CPU12 viii REFERENCE MANUAL ...
Page 14: ...MOTOROLA INTRODUCTION CPU12 1 4 REFERENCE MANUAL ...
Page 20: ...MOTOROLA OVERVIEW CPU12 2 6 REFERENCE MANUAL ...
Page 38: ...MOTOROLA INSTRUCTION QUEUE CPU12 4 6 REFERENCE MANUAL ...
Page 300: ...MOTOROLA DEVELOPMENT AND DEBUG SUPPORT CPU12 8 16 REFERENCE MANUAL ...
Page 338: ...MOTOROLA MEMORY EXPANSION CPU12 10 8 REFERENCE MANUAL ...
Page 364: ...MOTOROLA INSTRUCTION REFERENCE CPU12 A 26 REFERENCE MANUAL ...
Page 386: ...MOTOROLA HIGH LEVEL LANGUAGE SUPPORT CPU12 C 6 REFERENCE MANUAL ...
Page 438: ...MOTOROLA SUMMARY OF CHANGES CPU12 S 2 REFERENCE MANUAL ...
Page 439: ......