![]() |
Routines |
| Prev: 33996 | Up: Map | Next: 34166 |
|
Used by the routine at SaveGame.
Verifies a block just saved, using LD_BYTES with carry clear. A tape error prints "tape error - hit any key to continue" and waits for a key.
|
||||
|
Verify block.
|
||||
| VerifyBlock | 34138 | CALL 1366 | Call LD_BYTES. | |
| 34141 | RET C | Return if the block verified (carry set). | ||
| 34142 | LD A,1 | Write 1 to WaitCountdown. | ||
| 34144 | LD (46849),A | |||
| 34147 | LD HL,45953 | Point at the message "tape error - hit any key to continue[0x15]" (45953). | ||
| 34150 | CALL PrintMessage | Call PrintMessage to print message. | ||
|
This is the same key wait as Normal_AnyKey.
|
||||
| VerifyBlock_WaitForKey | 34153 | XOR A | Read from the keyboard port. | |
| 34154 | IN A,(254) | |||
| 34156 | AND %00011111 | Keep bits 0-4, one for each key in the half-row. XOR A then IN A,(254) reads every half-row at once, and a pressed key reads as a reset bit. | ||
| 34158 | CP 31 | Loop back to VerifyBlock_WaitForKey until any key has been pressed. | ||
| 34160 | JR Z,VerifyBlock_WaitForKey | |||
| 34162 | POP DE | Jump back to SaveGame_Done to dispatch a control. | ||
| 34163 | JP SaveGame_Done | |||
| Prev: 33996 | Up: Map | Next: 34166 |