English
Language : 

HD404019R Datasheet, PDF (46/65 Pages) Renesas Technology Corp – CMOS 4-bit single-chip microcomputers
HD404019R Series
Addressing Modes
RAM Addressing Modes
As shown in figure 22, the MCU has three RAM addressing modes: register indirect addressing, direct
addressing, and memory register addressing.
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 Indirect Addressing
Instruction 1st word
Opcode
Instruction 2nd word
d9 d8 d7 d6 d5 d4 d3 d2 d1 d0
RAM address AP9 AP8 AP7 AP6 AP5 AP4 AP3 AP2 AP1 AP0
Direct Addressing
Instruction
Opcode
m3 m2 m1 m0
0 0 0 01 0
RAM address AP9 AP8 AP7 AP6 AP5 AP4 AP3 AP2 AP1 AP0
Memory Register Addressing
Figure 22 RAM Addressing Modes
Register Indirect Addressing Mode: The W register, X register, and Y register contents (10 bits) are
used as the RAM address.
Direct Addressing Mode: A direct addressing instruction consists of two words, with the word (10 bits)
following the opcode used as the RAM address.
Memory Register Addressing Mode: The memory registers (16 digits from $020 to $02F) are accessed
by executing the LAMR and XMRA instructions.
44