![]() |
Routines |
| Prev: 48024 | Up: Map | Next: 48046 |
|
Used by the routine at GameInitialisation.
|
||||
|
Writes 0 to every address from GameOptions to SecurityCheck.
|
||||
| ClearBuffers | 48031 | LD HL,38546 | Point HL at the first game variable at GameOptions. | |
| 48034 | LD BC,712 | Set the number of bytes to clear in BC to 712. | ||
|
This entry point is used by the routine at GameInitialisation.
|
||||
| ClearBuffers_Loop | 48037 | LD (HL),0 | Clear a byte of the game variables. | |
| 48039 | INC HL | Move onto the next byte. | ||
| 48040 | DEC BC | Decrease the byte counter by one. | ||
| 48041 | LD A,B | Loop back to ClearBuffers_Loop until all of the bytes have been cleared. | ||
| 48042 | OR C | |||
| 48043 | JR NZ,ClearBuffers_Loop | |||
| 48045 | RET | Return. | ||
| Prev: 48024 | Up: Map | Next: 48046 |