![]() |
Routines |
| Prev: 49006 | Up: Map | Next: 49060 |
|
Used by the routine at Game_Initialisation.
Carries out this step while the game is running.
|
|||||
|
|||||
| Handler_DateBar | 49017 | LD IX,49006 | Point IX at the current date at Messaging_CurrentDate and read the day of the week at CurrentDayOfWeek. | ||
| 49021 | LD A,(40929) | ||||
| 49024 | LD HL,48985 | Use the days of the week strings at Table_DaysOfWeekStrings. | |||
|
Populate day of the week.
|
|||||
| 49027 | CALL PopulateDayOfWeek | Call PopulateDayOfWeek to write the day of the week. | |||
| 49030 | INC IX | Call ConvertNumberToString to convert number to string. | |||
| 49032 | LD A,(40928) | ||||
| 49035 | CALL ConvertNumberToString | ||||
| 49038 | INC IX | Call ConvertNumberToString to convert number to string. | |||
| 49040 | LD A,(40927) | ||||
| 49043 | CALL ConvertNumberToString | ||||
| 49046 | LD A,(40930) | Write *Messaging_AM_PM to *IX+0. | |||
| 49049 | LD (IX+0),A | ||||
|
Now the date bar has been updated, set up printing it to the screen.
|
|||||
| 49052 | LD HL,49006 | Load HL with a pointer to Messaging_CurrentDate. | |||
| 49055 | LD B,11 | Set the length of the date bar in B (11 bytes). | |||
| 49057 | JP PrintDateBar | Jump ahead to PrintDateBar to print date bar. | |||
| Prev: 49006 | Up: Map | Next: 49060 |