![]() |
Routines |
| Prev: 6910 | Up: Map | Next: 6949 |
|
Used by the routine at CreateWindow.
|
||||
| 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 (screen location). | ||
| 6921 | LD DE,$693C | DE=NightDriver_Text. | ||
| 6924 | CALL PrintStringColour | Call PrintStringColour. | ||
|
Display the text for a short time.
|
||||
| 6927 | LD B,$04 | B=04 (delay length). | ||
| 6929 | CALL Delay | Call Delay. | ||
|
Remove the messaging.
|
||||
| 692C | LD HL,$4070 | HL=4070 (screen location). | ||
| 692F | PUSH HL | Stash HL on the stack. | ||
| 6930 | CALL ScreenAddress | Call ScreenAddress. | ||
| 6933 | LD A,$00 | A=00. | ||
| 6935 | EX AF,AF' | Switch to the shadow AF register. | ||
| 6936 | LD DE,$6AE5 | DE=Blank_Text. | ||
| 6939 | JP PrintStringColour_0 | Jump to PrintStringColour_0. | ||
|
Messging data.
|
||||
| NightDriver_Text | 693C | DEFM $47 | "NIGHT DRIVER" (47 is the attribute). | |
| 693D | DEFM "NIGHT DRIVE","R"+$80 | |||
| Prev: 6910 | Up: Map | Next: 6949 |