![]() |
Routines |
| Prev: 24392 | Up: Map | Next: 24429 |
|
Used by the routines at Show_Briefing_One, Show_Briefing_Two, Show_Briefing_Three, Show_Briefing_Four and Show_Briefing_Five.
Prints C characters from HL at DE, then fills two attribute rows with A.
|
||||||||||||||
|
Print the characters, then colour two attribute rows.
|
||||||||||||||
| Print_Briefing_Line | 24395 | PUSH AF | Stash the attribute, character counter and screen address on the stack. | |||||||||||
| 24396 | PUSH BC | |||||||||||||
| 24397 | PUSH DE | |||||||||||||
| 24398 | CALL Print_Double_Height | Call Print_Double_Height. | ||||||||||||
| 24401 | POP HL | Restore the screen address from the stack. | ||||||||||||
| 24402 | LD A,H | Rotate the high byte into an attribute offset. | ||||||||||||
| 24403 | RRCA | |||||||||||||
| 24404 | RRCA | |||||||||||||
| 24405 | RRCA | |||||||||||||
| 24406 | OR %01010000 | Set bits 4 and 6. | ||||||||||||
| 24408 | LD H,A | Copy the attribute address to H. | ||||||||||||
| 24409 | POP BC | Restore the character counter from the stack, and copy it to D. | ||||||||||||
| 24410 | LD D,C | |||||||||||||
| 24411 | LD E,2 | Set the row counter to 2 in E. | ||||||||||||
| 24413 | POP AF | Restore the attribute from the stack. | ||||||||||||
|
Fill two attribute rows.
|
||||||||||||||
| Fill_Briefing_Attribute_Rows | 24414 | PUSH HL | Stash the attribute pointer on the stack. | |||||||||||
| 24415 | LD B,D | Set the column counter from D. | ||||||||||||
| Fill_Briefing_Attribute_Column | 24416 | LD (HL),A | Write the attribute to the current cell. | |||||||||||
| 24417 | INC L | Advance the attribute pointer by one. | ||||||||||||
| 24418 | DJNZ Fill_Briefing_Attribute_Column | Decrease the column counter by one and loop back to Fill_Briefing_Attribute_Column until the column counter is zero. | ||||||||||||
| 24420 | LD BC,32 | Set the row stride to 32 in BC. | ||||||||||||
| 24423 | POP HL | Restore the attribute pointer from the stack. | ||||||||||||
| 24424 | ADD HL,BC | Advance the attribute pointer by the row stride. | ||||||||||||
| 24425 | DEC E | Decrease the row counter by one, and jump to Fill_Briefing_Attribute_Rows until the row counter is zero. | ||||||||||||
| 24426 | JR NZ,Fill_Briefing_Attribute_Rows | |||||||||||||
| 24428 | RET | Return. | ||||||||||||
| Prev: 24392 | Up: Map | Next: 24429 |