Prev: BF6E Up: Map Next: BFA4
BF79: Handler: Date Bar
Used by the routine at GameEntryPoint.
date-bar
Handler_DateBar BF79 LD IX,$BF6E IX=Messaging_CurrentDate.
BF7D LD A,($9FE1) A=*CurrentDayOfWeek.
BF80 LD HL,$BF59 HL=Table_DaysOfWeekStrings.
BF83 CALL PopulateDayOfWeek Call PopulateDayOfWeek.
BF86 INC IX Increment IX by one.
BF88 LD A,($9FE0) A=*CurrentTime_Hour.
BF8B CALL $BFB0 Call BFB0.
BF8E INC IX Increment IX by one.
BF90 LD A,($9FDF) A=*CurrentTime_Minutes.
BF93 CALL $BFB0 Call BFB0.
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 to PrintDateBar.
Prev: BF6E Up: Map Next: BFA4