Z
ILOG
RST
RESTART
RST address
Operation:
if (XM) then begin
SP
(SP)
(SP+1) ← PC(15-8)
(SP+2) ← PC(23-16)
(SP+3) ← PC(31-24)
end
else begin
SP
(SP)
(SP+1) ← PC(15-8)
end
PC
The current Program Counter (PC) is pushed onto the stack and the PC is loaded with a
constant address encoded in the instruction. Execution then begins at this address. The
restart instruction allows for a call to one of eight fixed locations as shown in the table below.
The table also indicates the encoding of the address used in the instruction encoding. (The
address is in hexadecimal, the encoding in binary.)
Address
00000000h
00000008h
00000010h
00000018h
00000020h
00000028h
00000030h
00000038h
Flags:
S:
Unaffected
Z:
Unaffected
H:
Unaffected
V:
Unaffected
N:
Unaffected
C:
Unaffected
Addressing
Mode
Syntax
RST address
Field Encodings: 000 for 00h, 001 for 08h, 010 for 10h, 011 for 18h,
100 for 20h, 101 for 28h, 110 for 30h, 111 for 38h
5-158
← SP - 4
← PC(7-0)
← SP - 2
← PC(7-0)
← address
t encoding
000
001
010
011
100
101
110
111
Instruction Format
11-t-111
Execute
Time
Note
4+w
X
Z380
™
U
'
M
SER
S
ANUAL
DC-8297-03
Need help?
Do you have a question about the Z80380 and is the answer not in the manual?
Questions and answers