![]() |
Routines |
| Prev: 24429 | Up: Map | Next: 24529 |
|
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 | 24461 | LD (61048),A | Write the colour to *Draw_List_Type. | |||||||||
| 24464 | LD (60962),IY | Write the vertex pointer to *Position_Y. | ||||||||||
| 24468 | LD A,(IX+0) | Jump to Draw_Briefing_Lines_Done if the edge count is zero. | ||||||||||
| 24471 | AND A | |||||||||||
| 24472 | JR Z,Draw_Briefing_Lines_Done | |||||||||||
| 24474 | LD B,A | Copy the edge count to B. | ||||||||||
|
Draw each edge.
|
||||||||||||
| Draw_Briefing_Lines_Loop | 24475 | PUSH BC | Stash the edge counter and table pointer on the stack. | |||||||||
| 24476 | PUSH IX | |||||||||||
| 24478 | LD IY,(60962) | Fetch the vertex pointer from *Position_Y. | ||||||||||
| 24482 | LD E,(IX+1) | Point IY at the first vertex. | ||||||||||
| 24485 | SLA E | |||||||||||
| 24487 | LD D,0 | |||||||||||
| 24489 | ADD IY,DE | |||||||||||
| 24491 | LD L,(IY+0) | Fetch the first endpoint to HL. | ||||||||||
| 24494 | LD H,(IY+1) | |||||||||||
| 24497 | LD IY,(60962) | Fetch the vertex pointer from *Position_Y. | ||||||||||
| 24501 | LD E,(IX+2) | Point IY at the second vertex. | ||||||||||
| 24504 | SLA E | |||||||||||
| 24506 | LD D,0 | |||||||||||
| 24508 | ADD IY,DE | |||||||||||
| 24510 | LD E,(IY+0) | Fetch the second endpoint to DE. | ||||||||||
| 24513 | LD D,(IY+1) | |||||||||||
| 24516 | CALL Move_Slot_Table_24 | Call Move_Slot_Table_24. | ||||||||||
| 24519 | POP IX | Restore the table pointer from the stack. | ||||||||||
| 24521 | INC IX | Advance the table pointer by two. | ||||||||||
| 24523 | INC IX | |||||||||||
| 24525 | POP BC | Restore the edge counter from the stack. | ||||||||||
| 24526 | 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 | 24528 | RET | Return. | |||||||||
| Prev: 24429 | Up: Map | Next: 24529 |