Unused |
Prev: 005F | Up: Map | Next: 0074 |
This routine is not used in the standard Spectrum but the code allows for a system reset to occur following activation of the NMI line. The system variable at 5CB0, named here NMIADD, has to have the value zero for the reset to occur.
|
||||
RESET | 0066 | PUSH AF | Save the current values held in these registers. | |
0067 | PUSH HL | |||
0068 | LD HL,($5CB0) | The two bytes of NMIADD must both be zero for the reset to occur. | ||
006B | LD A,H | |||
006C | OR L | |||
006D | JR NZ,$0070 | Note: this should have been 'JR Z'! | ||
006F | JP (HL) | Jump to START. | ||
NO_RESET | 0070 | POP HL | Restore the current values to these registers and return. | |
0071 | POP AF | |||
0072 | RETN |
Prev: 005F | Up: Map | Next: 0074 |