Prev: 52029 Up: Map Next: 52088
52050: Plot Slot Table
Used by the routine at Initialise_Next_Phase.
Plots *Slot_Table_Count points from Slot_Table.
Return if there are no slots.
Plot_Slot_Table 52050 LD A,(61328) Return if *Slot_Table_Count is zero.
52053 AND A
52054 RET Z
52055 LD B,A Copy the slot count to B.
52056 LD IX,23296 Point IX at Slot_Table.
Plot each slot.
Plot_Slot_Table_0 52060 PUSH BC Stash the slot counter on the stack.
52061 LD A,(IX+1) Set L to the X coordinate plus 128.
52064 ADD A,128
52066 LD L,A
52067 LD A,(IX+3) Set H to the Y coordinate plus 64.
52070 ADD A,64
52072 LD H,A
52073 LD A,(IX+8) Fetch the attribute from the slot.
52076 CALL Plot_Pixel Call Plot_Pixel.
52079 LD DE,9 Advance IX by 9.
52082 ADD IX,DE
52084 POP BC Restore the slot counter from the stack.
52085 DJNZ Plot_Slot_Table_0 Decrease the slot counter by one and loop back to Plot_Slot_Table_0 until it is zero.
52087 RET Return.
Prev: 52029 Up: Map Next: 52088