![]() |
Routines |
27860 | LD HL,57686 | Point HL at the first entry in the initialisation table at 57686 (see below) |
27863 | LD E,(HL) | Pick up an entry from the initialisation table in DE, which will then point at a data table concerning a door, window, cup or bike |
27864 | INC L | |
27865 | LD D,(HL) | |
27866 | INC L | Move HL along to the next entry in the initialisation table and save the pointer for now |
27867 | PUSH HL | |
27868 | EX DE,HL | Point HL at the door/window/cup/bike data table |
27869 | CALL 27672 | Alter UDG references and attributes in the play area |
27872 | POP HL | Restore the pointer to the initialisation table |
27873 | LD A,L | Have we reached the end of the initialisation table? |
27874 | CP 112 | |
27876 | JR NZ,27863 | Jump back if not |
27878 | LD HL,32756 | 32756 holds the door/window flags |
27881 | LD (HL),24 | Set bits 3 and 4: skool gate and boys' skool door open |
27883 | RET |
Address | Contents | Object | 57686 | 56637 | Left study door (closed) | 57688 | 57088 | Right study door (closed) | 57690 | 56576 | Science lab storeroom door (closed) | 57692 | 57149 | Boys' skool door (closed) | 57694 | 63744 | Skool gate (closed) | 57696 | 56064 | Drinks cabinet door (closed) | 57698 | 55040 | Top floor window (closed) | 57700 | 55552 | Middle floor window (closed) | 57702 | 57856 | Bike (chained to tree) | 57704 | 64000 | Skool gate (open) | 57706 | 57405 | Boys' skool door (open) | 57708 | 56081 | Cups on shelf in boys' skool (empty) | 57710 | 56337 | Cup on shelf in girls' skool (empty) |
---|