English
Language : 

HD404328 Datasheet, PDF (74/96 Pages) Hitachi Semiconductor – 4 BIT SINGLE CHIP MICROCOMPUTER
HD404328 Series
Addressing Modes
RAM Addressing Modes
The MCU has three RAM addressing modes, as shown in figure 44 and described below.
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 consist of 16 digits from $040–
$04F, are accessed with the LAMR and XMRA instructions.
W register X register
Y register
W1 W0 X3 X2 X1 X0 Y3 Y2 Y1 Y0
RAM address AP 9 AP 8 AP 7 AP 6 AP 5 AP 4 AP 3 AP 2 AP 1 AP 0
Register Indirect Addressing
1st word of instruction
Opcode
2nd word of instruction
d 9 d 8 d 7 d 6 d 5 d 4 d 3 d 2 d1 d 0
RAM address AP9 AP8 AP7 AP 6 AP 5 AP 4 AP 3 AP 2 AP 1 AP 0
Direct Addressing
Instruction
Opcode
m3 m2 m1 m0
000100
RAM address AP 9 AP 8 AP 7 AP 6 AP 5 AP 4 AP 3 AP 2 AP 1 AP 0
Memory Register Addressing
Figure 44 RAM Addressing Modes
72