Prev: 26784 Up: Map Next: 26896
26880: Set PlayArea Attributes
Used by the routine at CreateWindow.
Fills a block of the attribute buffer with 118 (INK:YELLOW, PAPER:YELLOW (BRIGHT)), which forms part of the border of the play area.
Input
B Width of the block (in cells)
C Height of the block (in rows)
HL Attribute address of the top left of the block
AttributesPlayArea 26880 LD E,B Keep the width of the block in E.
AttributesPlayArea_Row 26881 LD B,E Set the cell counter to the width of the block.
26882 PUSH HL Stash the address of the start of the row on the stack.
AttributesPlayArea_Column 26883 LD (HL),118 Set the attribute of the cell to 118.
26885 INC HL Increment HL by one.
26886 DJNZ AttributesPlayArea_Column Decrease the cell counter by one and loop back to AttributesPlayArea_Column until the row is done.
26888 POP HL Restore the address of the start of the row from the stack.
26889 CALL MoveDownOneRow Call MoveDownOneRow to move down a row.
26892 DEC C Decrease the row counter by one.
26893 JR NZ,AttributesPlayArea_Row Jump back to AttributesPlayArea_Row until all of the rows have been done.
26895 RET Return.
Prev: 26784 Up: Map Next: 26896