Direct Addressing - Renesas RL78/G1P Hardware User Manual

16-bit single-chip microcontroller
Hide thumbs Also See for RL78/G1P:
Table of Contents

Advertisement

RL78/G1P

3.4.3 Direct addressing

[Function]
Direct addressing uses immediate data in the instruction word as an operand address to directly specify the target
address.
[Operand format]
Identifier
!addr16
Label or 16-bit immediate data (only the space from F0000H to FFFFFH is specifiable)
ES:!addr16
Label or 16-bit immediate data (higher 4-bit addresses are specified by the ES register)
MOV !addr16, A
Instruction code
<1>
A 16-bit address <1> in the 64 KB area from
F0000H to FFFFFH specifies the target location
(for use in access to the 2nd SFRs etc.).
The ES register <1> specifies a 64 KB area within the
overall 1 MB space as the four higher-order bits, X, of
the address range.
A 16-bit address <2> in the area from X0000H to XFFFFH
and the ES register <1> specify the target location;
this is used for access to fixed data other than
that in mirrored areas.
R01UH0895EJ0100 Rev.1.00
Nov 29, 2019
Figure 3-17. Example of !addr16
<1>
OP-code
Low Addr.
High Addr.
Figure 3-18. Example of ES:!addr16
ES: !addr16
<1>
<2>
Instruction code
OP-code
Low Addr.
<2>
High Addr.
Description
Specifies the
address in memory
X0000H
Specifies a
64 KB area
ES
CHAPTER 3 CPU ARCHITECTURE
FFFFFH
Target memory
F0000H
Memory
FFFFFH
Target memory
00000H
Memory
Area from
X0000H to
XFFFFH
51

Advertisement

Table of Contents
loading

Table of Contents