![]() |
Routines |
| Prev: 6910 | Up: Map | Next: 693C |
|
Used by the routine at CreateWindow.
If it is night, shows "NIGHT DRIVER" for a short time and then removes it again.
|
||||||||
| DisplayNightDriver | 6919 | LD A,($5E43) | Return if Flag_DayNight is zero (i.e. it is "day"). | |||||
| 691C | AND A | |||||||
| 691D | RET Z | |||||||
|
Else it is night so handle the interlude to display "Night Driver".
|
||||||||
| 691E | LD HL,$4070 | HL=4070 (pixel co-ordinates: H is the Y position and L is the X position). | ||||||
| 6921 | LD DE,$693C | Point DE at the "NIGHT DRIVER" text (NightDriver_Text). | ||||||
| 6924 | CALL PrintStringColour | Print the text using PrintStringColour. | ||||||
|
Display the text for a short time.
|
||||||||
| 6927 | LD B,$04 | Set the delay count to 04. | ||||||
| 6929 | CALL Delay | Wait using Delay. | ||||||
|
Remove the messaging.
|
||||||||
| 692C | LD HL,$4070 | HL=4070 (pixel co-ordinates: H is the Y position and L is the X position). | ||||||
| 692F | PUSH HL | Stash the pixel co-ordinates on the stack. | ||||||
| 6930 | CALL ScreenAddress | Convert them to a screen address using ScreenAddress. | ||||||
| 6933 | LD A,$00 | Set the attribute to 00 which hides the text. | ||||||
| 6935 | EX AF,AF' | Keep the attribute in the shadow AF register. | ||||||
| 6936 | LD DE,$6AE5 | Point DE at the blank text (Blank_Text). | ||||||
| 6939 | JP PrintStringColour_UseAttribute | Jump to PrintStringColour_UseAttribute to print the blank text. | ||||||
| Prev: 6910 | Up: Map | Next: 693C |