Prev: 33873 Up: Map Next: 33971
33944: Load: Read The Save Block
Used by the routine at LoadGame.
Reads a save block from tape, prints the prompt at 45911, and waits for a key before returning to the loader.
Load Block
LoadBlock 33944 CALL 1366 Call LD_BYTES.
33947 RET C Return if the tape block loaded (carry set).
33948 LD A,1 Write 1 to WaitCountdown.
33950 LD (46849),A
33953 LD HL,45911 Point HL at 45911.
33956 CALL PrintMessage Call PrintMessage to print message.
LoadBlock_Loop 33959 XOR A Read from the keyboard port.
33960 IN A,(254)
33962 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.
33964 CP 31 Loop back to LoadBlock_Loop until any key has been pressed.
33966 JR Z,LoadBlock_Loop
33968 JP Restart Jump back to Restart to restart the game.
Prev: 33873 Up: Map Next: 33971