Prev: 978B Up: Map Next: 97F0
97D5: Control Code 00: Clear Screen
Copies the attribute byte held by *Print_AttributeVariable to the address held by *PrintAttributeBuffer_Pointer 02FF times.
The routine then copies 00 to the address held by *PrintScreenBuffer_Pointer, 17FF times.
ControlCode_ClearScreen 97D5 PUSH BC Stash BC and DE on the stack.
97D6 PUSH DE
Start with the attribute byte copy to *PrintAttributeBuffer_Pointer, 02FF times.
97D7 LD HL,($F81C) HL=*PrintAttributeBuffer_Pointer.
97DA LD A,($F81E) A=*Print_AttributeVariable.
97DD LD BC,$02FF BC=02FF.
97E0 CALL Helper_Copier Call Helper_Copier.
Next copy 00 to *PrintScreenBuffer_Pointer, 17FF times.
97E3 LD HL,($F82B) HL=*PrintScreenBuffer_Pointer.
97E6 XOR A A=00.
97E7 LD BC,$17FF BC=17FF.
97EA CALL Helper_Copier Call Helper_Copier.
97ED JP ControlCode_FullReturn_2 Jump to ControlCode_FullReturn_2.
Prev: 978B Up: Map Next: 97F0