![]() |
Routines |
| Prev: 59964 | Up: Map | Next: 59986 |
|
Used by the routine at GameStart.
Clear the current display buffer.
|
||||
| Clear_DisplayBuffer | 59972 | LD HL,(29429) | Load HL with the current display-buffer pointer (Pointer_CurrentDisplayBuffer). | |
| 59975 | LD BC,1919 | Load BC with 1919. | ||
|
This entry point is used by the routine at Clear_BothDisplayBuffers.
Shared zero-fill used to clear one or both display buffers.
|
||||
| Fill_MemoryWithZero | 59978 | XOR A | Clear A to 0. | |
| 59979 | LD (HL),A | Set the byte at HL. | ||
| 59980 | LD D,H | Copy HL to DE. | ||
| 59981 | LD E,L | Copy HL to DE. | ||
| 59982 | INC DE | Advance the clear-attributes destination by one. | ||
| 59983 | LDIR | Copy bytes from *HL to *DE until BC is zero. | ||
| 59985 | RET | Return. | ||
| Prev: 59964 | Up: Map | Next: 59986 |