![]() |
Routines |
| Prev: BB98 | Up: Map | Next: BBAE |
|
Used by the routine at GameInitialisation.
|
||||
|
Writes 00 to every address from GameOptions to SecurityCheck.
|
||||
| ClearBuffers | BB9F | LD HL,$9692 | Point HL at the first game variable at GameOptions. | |
| BBA2 | LD BC,$02C8 | Set the number of bytes to clear in BC to 02C8. | ||
|
This entry point is used by the routine at GameInitialisation.
|
||||
| ClearBuffers_Loop | BBA5 | LD (HL),$00 | Clear a byte of the game variables. | |
| BBA7 | INC HL | Move onto the next byte. | ||
| BBA8 | DEC BC | Decrease the byte counter by one. | ||
| BBA9 | LD A,B | Loop back to ClearBuffers_Loop until all of the bytes have been cleared. | ||
| BBAA | OR C | |||
| BBAB | JR NZ,ClearBuffers_Loop | |||
| BBAD | RET | Return. | ||
| Prev: BB98 | Up: Map | Next: BBAE |