English
Language : 

HD404054 Datasheet, PDF (82/101 Pages) Hitachi Semiconductor – HMCS400-series microcomputers designed to increase program productivity with large-capacity memory
HD404054 Series/HD404094 Series
Addressing Modes
RAM Addressing Modes
The MCU has three RAM addressing modes, as shown in figure 64 and described below.
W register X register
Y register
W1 W0 X3 X2 X1 X0 Y3 Y2 Y1 Y0
RAM address AP9 AP8 AP7 AP6 AP5 AP4 AP3 AP2 AP1 AP0
Register direct addressing
1st word of Instruction
Opcode
2nd word of Instruction
d 9 d 8 d7 d6 d 5 d 4 d3 d2 d1 d0
RAM address AP9 AP8 AP7 AP6 AP5 AP4 AP3 AP2 AP1 AP0
Direct addressing
Instruction
Opcode
m3 m2 m1 m 0
000100
RAM address AP9 AP8 AP7 AP6 AP5 AP4 AP3 AP2 AP1 AP0
Memory register addressing
Figure 64 RAM Addressing Modes
Register Indirect Addressing Mode: The contents of the W, X, and Y registers (10 bits in total) are used
as a RAM address.
Direct Addressing Mode: A direct addressing instruction consists of two words. The first word contains
the opcode, and the contents of the second word (10 bits) are used as a RAM address.
Memory Register Addressing Mode: The memory registers (MR), which are located in 16 addresses
from $040 to $04F, are accessed with the LAMR and XMRA instructions.
82