EasyManuals Logo
Home>ZiLOG>Computer Hardware>eZ80

ZiLOG eZ80 User Manual

Default Icon
411 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #40 background imageLoading...
Page #40 background image
eZ80
®
CPU
User Manual
UM007714-0908 Memory Mode Switching
31
RET.S 1 An invalid suffix. RET.L must be used in all mixed-
memory mode applications.
RET.L 0 RET.LIS
assembles to
49 C9
The starting program counter is {MBASE,
PC[15:0]}. Pop a byte from SPL into ADL to set
memory mode (03h = A D L , 02h = Z 8 0 ) .
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]}.
}
RET.L 1 RET.LIL
assembles to
5B C9
The starting program counter is PC[23:0]. Pop a
byte from SPL into ADL to set 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]}.
}
Table 19. RETI Instruction
User Code
ADL
Mode
Assembled
Code Operation
RETI 0 RETI
assembles to
ED 4D
The starting program counter is {MBASE,
PC[15:0]}. Pop a 2-byte return address from
{MBASE, SPS} into PC[15:0]. The ADL mode bit
remains cleared to 0. The ending program counter
is {MBASE, PC[15:0]}.
Table 18. RET Instruction (Continued)
User Code
ADL
Mode
Assembled
Code Operation

Questions and Answers:

Question and Answer IconNeed help?

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

ZiLOG eZ80 Specifications

General IconGeneral
BrandZiLOG
ModeleZ80
CategoryComputer Hardware
LanguageEnglish

Related product manuals