Prev: 29165 Up: Map Next: 29201
29184: Reset Attribute Buffer
Used by the routine at CreateWindow.
Sets the border to black, clears the screen with ResetScreen, then fills the attribute file with the background attribute at Background_Attribute.
Before After
reset-attributes-before reset-attributes-after
ResetAttributes 29184 XOR A Set the border to BLACK.
29185 OUT (254),A
29187 CALL ResetScreen Call ResetScreen.
29190 LD HL,22528 Point HL at the attribute buffer (22528).
29193 LD B,91 B=91 (i.e. finish once we reach the end of the attribute buffer).
29195 LD A,(24132) Fetch the background attribute (Background_Attribute) as the value to write.
29198 LD C,A
29199 JR ResetCopier Jump to ResetCopier.
View the equivalent code in;
Prev: 29165 Up: Map Next: 29201