![]() |
Routines |
| Prev: EA3C | Up: Map | Next: EA52 |
|
Used by the routine at GameStart.
Clear the current display buffer.
|
||||
| Clear_DisplayBuffer | EA44 | LD HL,($72F5) | Load HL with the current display-buffer pointer (Pointer_CurrentDisplayBuffer). | |
| EA47 | LD BC,$077F | Load BC with 077F. | ||
|
This entry point is used by the routine at Clear_BothDisplayBuffers.
Shared zero-fill used to clear one or both display buffers.
|
||||
| Fill_MemoryWithZero | EA4A | XOR A | Clear A to 00. | |
| EA4B | LD (HL),A | Set the byte at HL. | ||
| EA4C | LD D,H | Copy HL to DE. | ||
| EA4D | LD E,L | Copy HL to DE. | ||
| EA4E | INC DE | Advance the clear-attributes destination by one. | ||
| EA4F | LDIR | Copy bytes from *HL to *DE until BC is zero. | ||
| EA51 | RET | Return. | ||
| Prev: EA3C | Up: Map | Next: EA52 |