Prev: CB3D Up: Map Next: CB78
CB52: 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 CB52 LD A,($EF90) Return if *Slot_Table_Count is zero.
CB55 AND A
CB56 RET Z
CB57 LD B,A Copy the slot count to B.
CB58 LD IX,$5B00 Point IX at Slot_Table.
Plot each slot.
Plot_Slot_Table_0 CB5C PUSH BC Stash the slot counter on the stack.
CB5D LD A,(IX+$01) Set L to the X coordinate plus 80.
CB60 ADD A,$80
CB62 LD L,A
CB63 LD A,(IX+$03) Set H to the Y coordinate plus 40.
CB66 ADD A,$40
CB68 LD H,A
CB69 LD A,(IX+$08) Fetch the attribute from the slot.
CB6C CALL Plot_Pixel Call Plot_Pixel.
CB6F LD DE,$0009 Advance IX by 09.
CB72 ADD IX,DE
CB74 POP BC Restore the slot counter from the stack.
CB75 DJNZ Plot_Slot_Table_0 Decrease the slot counter by one and loop back to Plot_Slot_Table_0 until it is zero.
CB77 RET Return.
Prev: CB3D Up: Map Next: CB78