Prev: 62310 Up: Map Next: 62330
62317: Interrupt routine: Update glowing blocks' attribute to next colour in sequence
Used by the routine at 62178.
Output
E New attribute of glowing blocks
62317 LD A,(23462) Load A with current INK colour of glowing blocks
62320 INC A Advance to next colour in sequence
62321 AND 7 Ensure that only INK attributes are used, rolling back over to zero (black) after seven (white)
62323 JR Z,62320 We don't want "black" light, so advance from zero (black) to one (blue) if black
62325 LD (23462),A Place updated attribute back in memory
62328 LD E,A Copy new attribute into E
62329 RET Return
Prev: 62310 Up: Map Next: 62330