Prev: 54976 Up: Map Next: 54996
54983: Interrupt routine: Update glowing blocks' attribute to next colour in sequence
Used by the routines at 54853 and 54955.
Output
E New attribute of glowing blocks
54983 LD A,(23409) Load A with current INK colour of glowing blocks
54986 INC A Advance to next colour in sequence
54987 AND 7 Ensure that only INK attributes are used, rolling back over to zero (black) after seven (white)
54989 JR Z,54986 We don't want "black" light, so advance from zero (black) to one (blue) if black
54991 LD (23409),A Place updated attribute back in memory
54994 LD E,A Copy new attribute into E
54995 RET Return
Prev: 54976 Up: Map Next: 54996