English
Language : 

MC68HC11G5 Datasheet, PDF (155/195 Pages) Motorola, Inc – High-density Complementary Metal Oxide Semiconductor (HCMOS) Microcontroller
Freescale Semiconductor, Inc.
12.3.1 Accumulator and Memory Instructions
Most of these instructions use two operands. One operand is either an accumulator or an index
register while the second operand is usually obtained from memory using one of the addressing
modes discussed earlier. These accumulator memory instructions can be divided into six subgroups:
1. Loads, stores and transfers,
2. Arithmetic operations,
3. Multiply and divide,
4. Logical operations,
5. Data testing and bit manipulation,
6. Shifts and rotates.
These instructions are discussed in the following tables and paragraphs.
12.3.1.1
Loads, Stores and Transfers
Almost all MCU activities involve moving data from memories or peripherals into the CPU or moving
results from the CPU to memory or to I/O devices. The load, store, and transfer instructions
associated with the accumulators are summarized in the following table. There are additional load,
store, push, and pull instructions associated with the index registers and stack pointer register
(see 12.3.2 Stack And Index Register Instructions).
Table 12-1. Loads, Stores and Transfers
Function
Clear Memory Byte
Clear Accumulator A
Clear Accumulator B
Load Accumulator A
Load Accumulator B
Load Double Accumulator D
Pull A from Stack
Pull B from Stack
Push A onto Stack
Push B onto Stack
Store Accumulator A
Store Accumulator B
Store Double Accumulator D
Transfer A to B
Transfer A to CCR
Transfer B to A
Transfer CCR to A
Exchange D with X
Exchange D with Y
Mnemonic IMM DIR EXT INDX INDY INH
CLR
X
X
X
CLRA
X
CLRB
X
LDAA
X
X
X
X
X
LDAB
X
X
X
X
X
LDD
X
X
X
X
X
PULA
X
PULB
X
PSHA
X
PSHB
X
STAA
X
X
X
X
X
STAB
X
X
X
X
X
STD
X
X
X
X
X
TAB
X
TAP
X
TBA
X
TPA
X
XGDX
X
XGDY
X
CPU, ADDRESSING MODES AND INSTRUCTION SET
12-5
For More Information On This Product,
Go to: www.freescale.com