Figure 8.0-1 is a summary of the effect of different instructions on the two enable flip flops,
Action
IFF} IFF2
CPU Reset
0
0
DI
0
0
EI
1
LDA,I
•
•
IFF 2 "+ Parity flag
LDA,R
•
•
IFF 2 "+ Parity flag
Accept NMI
0
•
RETN
IFF2
•
IFF2 "+lFFl
"." indicates no change
FIGURE 8.o.1
INTERRUPT ENABLE/DISABLE FLIP FLOPS
CPU RESPONSE
Non Maskable
A nonmaskable interrupt will be accepted at all times by the CPU. When this occurs, the CPU ignores
the next instruction that it fetches and instead does a restart to location 0066H. Thus, it behaves exactly as
if
it
had received a restart instruction but, it is to a locatiort that is not one of the 8 software restart loca-
tions. A restart is merely a call to a specific address irt page 0 of memory.
Maskable
The CPU cart be programmed to respond to the maskable interrUpt in arty one of three possible
modes.
Mode
0
This mode is identical to the 8080A interrupt response mode. With this mode, the interrupting device
can place any instruction on the data bus and the CPU will execute it. Thus, the interrupting device pro-
vides the next instructiort to be executed instead of the memory. Often this will be a restart instructiort
since the interrupting device only need supply a single byte instruction. Alternatively; any other instruction
such as a 3 byte call to any location in memory could be executed.
The number of clock cycles necessary to execute this instruction is 2 mote than the normal number for the
instruction. This occurs since the CPU automatically adds
2
wait states to an interrupt response cycle to
allow sufficient time to implement an external daisy cha.in for priority control. Section 5.0 illustrates the
detailed timing for an interrupt response. After the application of RESET the CPU will automatically enter
interrupt Mode O.
Mode}
When this mode has been selected by the programrrter, the CPU will respond to an interrupt by
executing a restart to location 0038H. Thus the response is iderttical to that for a non maskable interrupt
except tha.t the call location is 0038H instead of 0066H. Another difference is that the number of cycles
required to complete the restart instruction is 2 more than normal due to the two added wait states.
56
Need help?
Do you have a question about the Z80-CPU and is the answer not in the manual?
Questions and answers