Back to Skool Routines
21408: Do POKEs specified by table at 20650
Used by the routine at 21664. Uses the table at 20650 to do some POKEs that are required before the game starts. The POKEs are as follows:
POKE Affected routine
24774,2 24684
24816,26 24684
27130,8 27110
27428,64 27419
27438,64 27419
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) Otherwise 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