![]() |
Routines |
| Prev: 5F6D | Up: Map | Next: 5FD1 |
|
Used by the routines at Show_Briefing_One, Show_Briefing_Two, Show_Briefing_Three, Show_Briefing_Four and Show_Briefing_Five.
Draws each edge in the IX table using vertices at IY.
|
||||||||||||
| Draw_Briefing_Lines | 5F8D | LD ($EE78),A | Write the colour to *Draw_List_Type. | |||||||||
| 5F90 | LD ($EE22),IY | Write the vertex pointer to *Position_Y. | ||||||||||
| 5F94 | LD A,(IX+$00) | Jump to Draw_Briefing_Lines_Done if the edge count is zero. | ||||||||||
| 5F97 | AND A | |||||||||||
| 5F98 | JR Z,Draw_Briefing_Lines_Done | |||||||||||
| 5F9A | LD B,A | Copy the edge count to B. | ||||||||||
|
Draw each edge.
|
||||||||||||
| Draw_Briefing_Lines_Loop | 5F9B | PUSH BC | Stash the edge counter and table pointer on the stack. | |||||||||
| 5F9C | PUSH IX | |||||||||||
| 5F9E | LD IY,($EE22) | Fetch the vertex pointer from *Position_Y. | ||||||||||
| 5FA2 | LD E,(IX+$01) | Point IY at the first vertex. | ||||||||||
| 5FA5 | SLA E | |||||||||||
| 5FA7 | LD D,$00 | |||||||||||
| 5FA9 | ADD IY,DE | |||||||||||
| 5FAB | LD L,(IY+$00) | Fetch the first endpoint to HL. | ||||||||||
| 5FAE | LD H,(IY+$01) | |||||||||||
| 5FB1 | LD IY,($EE22) | Fetch the vertex pointer from *Position_Y. | ||||||||||
| 5FB5 | LD E,(IX+$02) | Point IY at the second vertex. | ||||||||||
| 5FB8 | SLA E | |||||||||||
| 5FBA | LD D,$00 | |||||||||||
| 5FBC | ADD IY,DE | |||||||||||
| 5FBE | LD E,(IY+$00) | Fetch the second endpoint to DE. | ||||||||||
| 5FC1 | LD D,(IY+$01) | |||||||||||
| 5FC4 | CALL Move_Slot_Table_24 | Call Move_Slot_Table_24. | ||||||||||
| 5FC7 | POP IX | Restore the table pointer from the stack. | ||||||||||
| 5FC9 | INC IX | Advance the table pointer by two. | ||||||||||
| 5FCB | INC IX | |||||||||||
| 5FCD | POP BC | Restore the edge counter from the stack. | ||||||||||
| 5FCE | DJNZ Draw_Briefing_Lines_Loop | Decrease the edge counter by one and loop back to Draw_Briefing_Lines_Loop until it is zero. | ||||||||||
| Draw_Briefing_Lines_Done | 5FD0 | RET | Return. | |||||||||
| Prev: 5F6D | Up: Map | Next: 5FD1 |