![]() |
Routines |
| Prev: BF6E | Up: Map | Next: BFA4 |
|
Used by the routine at Game_Initialisation.
Carries out this step while the game is running.
|
|||||
|
|||||
| Handler_DateBar | BF79 | LD IX,$BF6E | Point IX at the current date at Messaging_CurrentDate and read the day of the week at CurrentDayOfWeek. | ||
| BF7D | LD A,($9FE1) | ||||
| BF80 | LD HL,$BF59 | Use the days of the week strings at Table_DaysOfWeekStrings. | |||
|
Populate day of the week.
|
|||||
| BF83 | CALL PopulateDayOfWeek | Call PopulateDayOfWeek to write the day of the week. | |||
| BF86 | INC IX | Call ConvertNumberToString to convert number to string. | |||
| BF88 | LD A,($9FE0) | ||||
| BF8B | CALL ConvertNumberToString | ||||
| BF8E | INC IX | Call ConvertNumberToString to convert number to string. | |||
| BF90 | LD A,($9FDF) | ||||
| BF93 | CALL ConvertNumberToString | ||||
| BF96 | LD A,($9FE2) | Write *Messaging_AM_PM to *IX+00. | |||
| BF99 | LD (IX+$00),A | ||||
|
Now the date bar has been updated, set up printing it to the screen.
|
|||||
| BF9C | LD HL,$BF6E | Load HL with a pointer to Messaging_CurrentDate. | |||
| BF9F | LD B,$0B | Set the length of the date bar in B (0B bytes). | |||
| BFA1 | JP PrintDateBar | Jump ahead to PrintDateBar to print date bar. | |||
| Prev: BF6E | Up: Map | Next: BFA4 |