Prev: 7541 Up: Map Next: 7564
755B: Initialise an event or object for a new game
Used by the routine at 7541. Activates or deactivates an entry in the event table at 5FE0 or the object location table at 7D1C as appropriate for a new game.
Input
HL Address of the first byte of the event/object entry
755B LD A,(HL) Pick up the first byte of the entry
755C INC A Have we reached the end of the table?
755D RET Z Return with the zero flag set if so
755E RES 0,(HL) Reset bit 0 of the first byte of the entry, thus activating it
7560 ADD A,A Should this entry be active at the start of the game?
7561 RET NC Return if so
7562 INC (HL) Otherwise set bit 0 of the first byte of the entry, thus deactivating it
This entry point is used by the routine at 7500.
7563 RET
Prev: 7541 Up: Map Next: 7564