Download CubeSuite Ver.1.30 Integrated Development Environment 78K0

Transcript
CubeSuite Ver.1.30
CHAPTER 4 ASSEMBLY LANGUAGE SPECIFICTION
Figure 4-17. How Table Indirect Addressing Works
Instruction code
7
6 5
1
1
1
0
ta4-0
1
15
Effective address
7
0
0
0
0
0
0
0
8 7
6 5
0
1
0
1
0
0
0
Memory (Table)
Low addr.
Effective address+1
High addr.
15
8 7
0
PC
(d) Register addressing
Register addressing transfers the contents of a register pair (AX) specified by an instruction word to the program counter (PC). Execution branches.
Register addressing is applied when the BR AX instruction is executed.
Figure 4-18. Outline of Register Addressing
7
rp
0 7
A
15
0
X
8 7
0
PC
(2) Operand address addressing
Operand addressing specifies an operand to designate the register or memory location that is operated on by an
instruction. Several types of operand address addressing are listed below.
(a) Implied addressing
Implied addressing automatically specifies one of the general-purpose accumulator registers (A or AX).
In the machine language for 78K0 microcontrollers, the following instructions use implied addressing.
Instruction
Register to Be Specified by Implied Addressing
MULU
A register for multiplicand and AX register for product storage
DIVUW
AX register for dividend and quotient storage
ADJBA/ADJBS
A register for storage of numeric values targeted for decimal correction
ROR4/ROL4
A register for storage of digit data that undergoes digit rotation
R20UT0004EJ0100 Rev.1.00
Jul 01, 2010
Page 458 of 822