Table 86. RET Instruction Detail
ADL
0
1
Condition Bits Affected
None.
Attributes
Mnemonic Operand
RETI
UM007714-0908
Suffix Operation
. L
The MADL control bit must be set to 1 to enable mixed-
ADL mode interrupts. The starting Program Counter is
{MBASE, PC[15:0]}. Pop a byte from SPL into ADL to
set the new memory mode (03h = ADL, 02h = Z80).
If ADL mode {
Pop the upper byte of the return address from SPL into
PC[23:16]. Pop 2 LS bytes of the return address from
{MBASE, SPS} into PC[15:0]. The ending Program
Counter is PC[23:0]
}
else Z80 mode {
Pop a 2-byte return address from {MBASE,SPS} into
PC[15:0]. The ending Program Counter is {MBASE,
PC[15:0]}.
}
.L
The MADL control bit must be set to 1 to enable mixed-
ADL mode interrupts. The starting Program Counter is
PC[23:0]. Pop a byte from S2L into ADL to set the new
memory mode (03h = ADL, 02h = Z80).
If ADL mode {
Pop 3-byte return address from SPL into PC[23:0].
The ending Program Counter is PC[23:0]
}
else Z80 mode {
Pop a 2-byte return address from SPL into PC[15:0].
The ending Program Counter is {MBASE, PC[15:0]}.
}
ADL
Mode Cycle
—
0/1
Opcode (hex)
6/7
ED, 4D
®
eZ80
CPU
User Manual
298
CPU Instruction Set
Need help?
Do you have a question about the eZ80 and is the answer not in the manual?
Questions and answers