Download Print this page

ZiLOG Z80380 User Manual page 28

Advertisement

Z
ILOG
4.2.4 Direct Address (DA)
When Direct Address mode is used, the data processed is
at the location whose memory or I/O port address is in the
instruction.
Instruction
OPERATION
ADDRESS
The operand value is the contents of the location whose
address is in the instruction.
Example of DA mode:
1. Load BC register from memory location 00005E22H in Word mode
LD BC, (5E22H)
;Load BC with the data in address
;00005E22H
Before instruction execution
After instruction execution
Memory location
2. Load BC register from memory location 12345E22H in Word mode
DDIR IW
LD BC, (12345E22H)
Before instruction execution
After instruction execution
Memory location
3. Load BC register from memory location 12345E22H in Long Word mode
DDIR IW,LW
LD BC, (12345E22H)
Before instruction execution
After instruction execution
Memory location
DC-8297-03
Memory or
I/O Port
OPERAND
BC
1234
0301
00005E22
01
00005E23
03
;extend direct address by one word
;Load BC with the data in address
;12345E22H
BC
1234
0301
12345E22
01
12345E23
03
;extend direct address by one word,
;and operation in Long Word
;Load BC with the data in address
;12345E22H
BCz
BC
1234
5678
0705
0301
12345E22
01
12345E23
03
12345E24
05
12345E25
07
Depending on the instruction, the operand specified by
DA mode is either in the I/O address space (I/O instruction)
or memory address space (all other instructions).
This mode is also used by Jump and Call instructions to
specify the address of the next instruction to be executed.
(The address serves as an immediate value that is loaded
into the program counter.)
Also, DDIR Immediate Data Directives are used to expand
the direct address to 24 or 32 bits. Operand width is
affected by LW bit status for the load and exchange
instructions.
Z380
U
'
M
SER
S
ANUAL
4-3

Advertisement

loading
Need help?

Need help?

Do you have a question about the Z80380 and is the answer not in the manual?