![]() |
Routines |
| Prev: E86C | Up: Map | Next: E996 |
|
Clears the first byte of each slot in Object_Slots, Long_Object_Slots and Short_Object_Slots, then resets related counters.
|
||||
| Clear_Object_Slots | E93C | LD HL,$EB00 | Point HL at Object_Slots. | |
| E93F | LD B,$17 | Set the slot counter to 17 in B. | ||
| E941 | LD DE,$000B | Set the slot stride to 0B in DE. | ||
| Clear_Object_Slots_0 | E944 | LD (HL),$00 | Clear the occupied flag, and loop for each slot. | |
| E946 | ADD HL,DE | |||
| E947 | DJNZ Clear_Object_Slots_0 | |||
| E949 | LD HL,$E480 | Point HL at Long_Object_Slots. | ||
| E94C | LD B,$08 | Set the slot counter to 08 in B. | ||
| E94E | LD DE,$0010 | Set the slot stride to 10 in DE. | ||
| Clear_Object_Slots_1 | E951 | LD (HL),$00 | Clear the occupied flag, and loop for each slot. | |
| E953 | ADD HL,DE | |||
| E954 | DJNZ Clear_Object_Slots_1 | |||
| E956 | LD HL,$E100 | Point HL at Short_Object_Slots. | ||
| E959 | LD B,$03 | Set the slot counter to 03 in B. | ||
| E95B | LD DE,$0004 | Set the slot stride to 04 in DE. | ||
| Clear_Object_Slots_2 | E95E | LD (HL),$00 | Clear the occupied flag, and loop for each slot. | |
| E960 | ADD HL,DE | |||
| E961 | DJNZ Clear_Object_Slots_2 | |||
| E963 | LD HL,$0810 | Write 0810 to *Phase_Word. | ||
| E966 | LD ($EF57),HL | |||
| E969 | LD HL,$0000 | Write 00 to *Heading_Y and *Heading. | ||
| E96C | LD ($EEF5),HL | |||
| E96F | LD ($EE72),HL | |||
| E972 | XOR A | Write 00 to; | ||
| E973 | LD ($EE7A),A | |||
| E976 | LD ($EED8),A | |||
| E979 | LD ($EF80),A | |||
| E97C | LD ($EF82),A | |||
| E97F | LD ($EF81),A | |||
| E982 | LD ($EE2D),A | |||
| E985 | LD ($EEDE),A | |||
| E988 | LD ($EFED),A | |||
| E98B | INC A | Write 01 to *Timeout_Ready. | ||
| E98C | LD ($EE7B),A | |||
| E98F | LD HL,$00FF | Write FF to *Countdown. | ||
| E992 | LD ($EF8B),HL | |||
| E995 | RET | Return. | ||
| Prev: E86C | Up: Map | Next: E996 |