Prev: 56610 Up: Map Next: 56684
56631: Load Game
Used by the routine at Handler_Keyboard.
Prints Messaging_LoadGame, waits for "2", then loads the tape block.
Use the ROM font and print the load message.
Tape_Load 56631 LD HL,15360 Write 15360 to *CHARS.
56634 LD (23606),HL
56637 LD HL,59364 Print the messaging at Messaging_LoadGame.
56640 CALL JumpTable_PrintMessage
Wait until a key is pressed.
Tape_Load_Wait 56643 LD BC,10000 Call JumpTable_Delay with a pause of 10000.
56646 CALL JumpTable_Delay
56649 CALL 654 Call KEY_SCAN.
56652 LD A,E Jump to Tape_Load_Wait if no key is pressed.
56653 CP 255
56655 JR Z,Tape_Load_Wait
Load only if "2" was pressed.
56657 CP 2 Jump to Tape_Load_Resume unless "2" was pressed.
56659 JR NZ,Tape_Load_Resume
56661 POP BC Restore BC from the stack.
56662 CALL Tape_BlockRange Call Tape_BlockRange.
56665 SCF Call LD_BYTES with carry set.
56666 CALL 1366
56669 CALL Tape_Checksum Jump to Reset_Introduction if the checksum does not match.
56672 CP L
56673 JP NZ,Reset_Introduction
Reload the room with bit 7 set.
Tape_Load_Resume 56676 LD A,(25762) Set bit 7 of the room ID.
56679 SET 7,A
56681 JP Change_Room Jump to Change_Room.
Prev: 56610 Up: Map Next: 56684