Prev: 21237 Up: Map Next: 21419
21408: Do essential POKEs before the game starts
Used by the routine at 21664. Uses the table at 20650 to do some POKEs that are required before the game starts.
Input
HL 20650
21408 BIT 0,(HL) Have we reached the end of the POKE table?
21410 RET NZ Return if so
21411 LD E,(HL) Pick up the address that needs to be POKEd in DE
21412 INC L
21413 LD D,(HL)
21414 INC L Point HL at the POKE operand
21415 LDI Do the POKE
21417 JR 21408 Jump back to do the next POKE
Prev: 21237 Up: Map Next: 21419