![]() |
Routines |
| Prev: 38243 | Up: Map | Next: 38259 |
|
Used by the routines at Select_Game_Options and Clear_Screen.
Fills an area of memory with zero. The entry point at FillMemory_WithValue fills it with the byte in E.
|
||||||||||
| FillMemory | 38249 | LD E,0 | Set the value to write to 0. | |||||||
|
This entry point is used by the routine at Clear_Attributes.
|
||||||||||
| FillMemory_WithValue | 38251 | LD (HL),E | Write the value to the address. | |||||||
| 38252 | INC HL | Move on to the next address. | ||||||||
|
Decrease the byte counter and loop back to FillMemory_WithValue until all of the bytes have been written.
|
||||||||||
| 38253 | DEC BC | Decrement the byte counter. | ||||||||
| 38254 | LD A,B | Jump back to FillMemory_WithValue until all of the bytes have been written. | ||||||||
| 38255 | OR C | |||||||||
| 38256 | JR NZ,FillMemory_WithValue | |||||||||
| 38258 | RET | Return. | ||||||||
|
View the equivalent code in;
|
||||||||||
| Prev: 38243 | Up: Map | Next: 38259 |