Prev: C128 Up: Map Next: C142
C129: Initialise Screen Display
Used by the routine at ProcessTextToken.
Clears the parser flag, marks the screen in use, and sets the width and the print position.
InitialiseScreenDisplay C129 XOR A Clear the parser flag (A019) and set the screen flag (C128) to 01.
C12A LD ($A019),A
C12D INC A
C12E LD ($C128),A
C131 LD A,$12 Use 12 for the display.
This entry point is used by the routine at ResetScreenDisplay.
Record the result in the screen width at ScreenWidth, then use the screen as the pointer, then record the pointer in the storage Decorative Line Screen Position.
InitialiseScreenDisplay_0 C133 LD ($C1F5),A Store it in the screen width.
C136 LD HL,$5020 Write 5020 (screen buffer location) to *C1F8.
C139 LD ($C1F8),HL
C13C LD A,$02 Write 02 to the decorative line.
C13E LD ($C1FA),A
C141 RET Return.
Prev: C128 Up: Map Next: C142