![]() |
Routines |
| Prev: B1B8 | Up: Map | Next: B1D6 |
|
Fills the attributes of the play window, which is 14 characters wide and 0E characters tall and starts at column 02 of row 02, with a single attribute.
|
||||||||
| FillPlayWindowAttributes | B1C2 | LD HL,$5842 | Point HL at the top left attribute of the play window. | |||||
| B1C5 | LD DE,$000C | There are 0C attributes between the end of one window row and the start of the next. | ||||||
| B1C8 | LD BC,$140E | The window is 14 columns wide (B) and 0E rows tall (C). | ||||||
|
This entry point is used by the routines at FillLargeWindowAttributes and FillMessageAttributes.
|
||||||||
| FillAttributes_Row | B1CB | PUSH BC | Save the dimensions. | |||||
| FillAttributes_Column | B1CC | LD (HL),A | Write the attribute to the current cell. | |||||
| B1CD | INC L | Move on to the next column. | ||||||
| B1CE | DJNZ FillAttributes_Column | Loop back until the row is complete. | ||||||
| B1D0 | ADD HL,DE | Move on to the start of the next row. | ||||||
| B1D1 | POP BC | Restore the dimensions. | ||||||
| B1D2 | DEC C | Decrease the row counter by one. | ||||||
| B1D3 | JR NZ,FillAttributes_Row | Loop back until every row has been filled. | ||||||
| B1D5 | RET | Return. | ||||||
| Prev: B1B8 | Up: Map | Next: B1D6 |