Direct Address (Da) Mode - Samsung S3F84B8 User Manual

8-bit cmos
Hide thumbs Also See for S3F84B8:
Table of Contents

Advertisement

S3F84B8_UM_REV 1.00

3.10 DIRECT ADDRESS (DA) MODE

In Direct Address (DA) mode, the instruction provides an operand's 16-bit memory address. Jump (JP) and Call
(CALL) instructions use this addressing mode to specify the 16-bit destination address loaded into the PC
whenever a JP or CALL instruction is executed.
The LDC and LDE instructions can use Direct Address mode to specify the source or destination address for Load
operations to program memory (LDC) or external data memory (LDE), if implemented.
Program or
Data Memory
Program Memory
Upper Address Byte
Lower Address Byte
dst/src
OPCODE
Sample Instructions:
LDC
R5,1234H
LDE
R5,1234H
Figure 3-10
Direct Addressing for Load Instructions
Memory
Address
Used
"0" or "1"
LSB Selects Program
Memory or Data Memory:
"0" = Program Memory
"1" = Data Memory
;
The values in the program address (1234H)
are loaded into register R5.
;
Identical operation to LDC example, except that
external program memory is accessed.
3-10
3 ADDRESSING MODES

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents