![]() |
Routines |
| Prev: 44311 | Up: Map | Next: 44399 |
|
Used by the routines at Update_Berk_State and Update_Timed_Events.
Reset the status/menu text cursor to the glyph bitmap at Data_MenuGlyphBitmaps.
|
||||
| Reset_Text_Position | 44359 | XOR A | Clear A ready to reset the task timer. | |
| 44360 | LD (29424),A | Set the task timer (TaskTimer). | ||
| 44363 | LD HL,44311 | Point HL at the menu glyph bitmaps (Data_MenuGlyphBitmaps). | ||
| 44366 | LD (29433),HL | Write the pointer in HL to the temporary screen pointer (Pointer_CurrentCharacterSet). | ||
| 44369 | CALL Print_Menu_Strings | Call Print_Menu_Strings to print Menu Strings. | ||
| 44372 | AND C | Mask A with B. | ||
| 44373 | LD E,D | Copy D into E (build a pointer/offset). | ||
| 44374 | LD (HL),B | Write the loop counter through the pointer in HL. | ||
| 44375 | LD BC,770 | Load BC with 770 as a room/position constant. | ||
| 44378 | LD E,L | Copy L into E (build a pointer/offset). | ||
| 44379 | LD A,2 | Load A with 2. | ||
| 44381 | LD (29447),A | Set the temporary room/state byte (CurrentTextAttribute). | ||
| 44384 | LD HL,23204 | Point HL at attribute-file address 23204 (attribute buffer). | ||
| 44387 | LD B,20 | Load B with 20 as a loop counter. | ||
| 44389 | LD DE,0 | Clear DE (zero offset). | ||
|
Print the status/menu glyph run across the attribute strip at 23204 (attribute buffer).
|
||||
| Reset_Text_Position_PrintLoop | 44392 | CALL Print_Character | Call Print_Character to print Character. | |
| 44395 | INC HL | Advance 23204 (attribute buffer) by one byte. | ||
| 44396 | DJNZ Reset_Text_Position_PrintLoop | Decrease the loop counter in B and jump to Reset_Text_Position_PrintLoop if more iterations remain. | ||
| 44398 | RET | Return. | ||
| Prev: 44311 | Up: Map | Next: 44399 |