Prev: 865F Up: Map Next: 86C3
869F: Give two chances to enter a correct code
Used by the routine at 8400.
869F LD HL,$4000 Clear the display file and attribute file
86A2 LD DE,$4001
86A5 LD BC,$1AFF
86A8 LD (HL),$00
86AA LDIR
86AC LD IX,$858B Point IX at the message at 858B ("Enter Code at grid location     ")
86B0 CALL $86C3 Display the code entry screen and collect a four-digit code from the user
86B3 JP Z,$87CA Start the game if the code is correct
86B6 LD IX,$85AB Point IX at the message at 85AB ("Sorry, try code at location     ")
86BA CALL $86C3 Display the code entry screen and collect another four-digit code from the user
86BD JP Z,$87CA Start the game if the code is correct
86C0 JP $0000 Otherwise reset the machine
Prev: 865F Up: Map Next: 86C3