Direct Address Mode (Da) - Samsung KS86C6004 Manual

Table of Contents

Advertisement

ADDRESSING MODES

DIRECT ADDRESS MODE (DA)

In Direct Address (DA) mode, the instruction provides the operand's 16-bit memory address. Jump (JP) and Call
(CALL) instructions use this addressing mode to specify the 16-bit destination address that is 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 to external data memory (LDE), if implemented.
3-10
PROGRAM OR
DATA MEMORY
PROGRAM MEMORY
UPPER ADDR BYTE
LOWER ADDR BYTE
dst / src
"0" OR "1"
OPCODE
SAMPLE INSTRUCTIONS:
LDC
R5,1234H
; The values in the program address (1234H)
LDE
R5,1234H
; Identical operation to LDC example, except that
Figure 3-10. Direct Addressing for Load Instructions
KS86C6004/C6008/P6008 MICROCONTROLLER (Preliminary Spec)
MEMORY
ADDRESS
USED
LSB SELECTS PROGRAM
MEMORY OR DATA MEMORY:
"0" = PROGRAM MEMORY
"1" = DATA MEMORY
are loaded into register R5.
external program memory is accessed.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ks86c6008Ks86p6008

Table of Contents