Prev: 51141 Up: Map Next: 51178
51152: Start of main game loop
Used by the routine at 51032.
51152 DI Disable interrupts
51153 CALL 58945 Check scroll status and player inputs such as current spell selection, key controls
51156 LD HL,0 Reset the address pointer to the ROM, that produces semi-random byte values to play generic sound effects in the routine at 57815.
51159 LD (60249),HL
51162 LD A,0 Reset speaker bit (and border)
51164 OUT (254),A
51166 LD (60072),A Set the default graphics colour attribute to 0 (black INK, black PAPER)
51169 LD HL,(56046) Address pointer to the room data sets at 31744 that contain scenery, object and creature data for the current room
51172 LD (60092),HL Copy base pointer to address store for start of next data set
51175 LD (60094),HL Copy base pointer to address store for start of current data set
Prev: 51141 Up: Map Next: 51178