![]() |
Routines |
| Prev: A8F0 | Up: Map | Next: A8F9 |
|
Used by the routine at StartGame.
Part of the tape protection. The Z80 keeps bit 7 of R as it was last written, and the tape loader leaves it set. If the game was started any other way then bit 7 is clear and the machine is reset.
|
||||
|
Reset the machine if bit 7 of R is clear.
|
||||
| CheckProtection | A8F1 | LD HL,$0000 | Point HL at START. | |
| A8F4 | LD A,R | Fetch R. | ||
| A8F6 | RLA | Move bit 7 into the carry flag. | ||
| A8F7 | RET C | Return if the bit is set. | ||
| A8F8 | JP (HL) | Jump to START. | ||
| Prev: A8F0 | Up: Map | Next: A8F9 |