![]() |
Routines |
| Prev: 25950 | Up: Map | Next: 26136 |
|
Used by the routines at DescribeLocation and WaitForKey.
Blanks the pixel rows down to the bottom of the text window. Pictures on start at row 12, under the illustration. Pictures off start at row 0.
|
||||
| ClearLowerRows | 26093 | LD A,(26326) | Pictures off start clearing at row 0. | |
| 26096 | OR A | |||
| 26097 | JR Z,ClearLower_Adjust | |||
| 26099 | LD A,12 | Pictures on start at row 12. | ||
|
Pictures off wrap the start row.
|
||||
| ClearLower_Adjust | 26101 | DEC A | Pictures off arrive here with zero, so this wraps to 255. | |
|
Blank one character row.
|
||||
| ClearLower_Row | 26102 | INC A | The increment restores row 0, or restores 12 when pictures are on. | |
| 26103 | LD HL,23447 | Point HL at BottomRow. | ||
| 26106 | LD B,(HL) | Fetch *BottomRow into B. | ||
| 26107 | CP B | Return if this row has reached it. | ||
| 26108 | RET Z | |||
| 26109 | CALL RowAddress | Call RowAddress. | ||
| 26112 | PUSH DE | Copy DE to HL (using the stack). | ||
| 26113 | POP HL | |||
| 26114 | INC DE | Eight pixel rows, filled from the next byte. | ||
| 26115 | LD B,8 | |||
|
Blank eight pixel rows.
|
||||
| ClearLower_Pixel | 26117 | PUSH HL | Save the row. | |
| 26118 | PUSH DE | |||
| 26119 | PUSH BC | |||
| 26120 | LD BC,31 | 0031 more bytes. | ||
| 26123 | LD (HL),0 | Write 0 across the rest of the row. | ||
| 26125 | LDIR | |||
| 26127 | POP BC | Restore the row from the stack. | ||
| 26128 | POP DE | |||
| 26129 | POP HL | |||
| 26130 | INC D | The next pixel row. | ||
| 26131 | INC H | |||
| 26132 | DJNZ ClearLower_Pixel | All eight. | ||
| 26134 | JR ClearLower_Row | The next character row. | ||
| Prev: 25950 | Up: Map | Next: 26136 |