Routines |
Prev: 35749 | Up: Map | Next: 35815 |
Room numbers from which lift can be called:
Used by the routine at 35495.
|
||||||||||||||||||||
35789 | LD A,(65532) | Reset call-lift-enabled flag (i.e. false)... | ||||||||||||||||||
35792 | RES 7,A | ... | ||||||||||||||||||
35794 | LD (65532),A | ... | ||||||||||||||||||
35797 | LD A,(65529) | Load A with Magic Knight's current room | ||||||||||||||||||
35800 | OR A | If room number is zero (i.e. "the lift")... | ||||||||||||||||||
35801 | RET Z | ...then return with flag unset | ||||||||||||||||||
35802 | DEC A | Decrease room number by one | ||||||||||||||||||
35803 | AND 7 | If this value is not a multiple of eight (i.e. a room from which the lift can be called)... | ||||||||||||||||||
35805 | RET NZ | ...then return with flag unset | ||||||||||||||||||
35806 | LD A,(65532) | Set call-lift-enabled flag (i.e. true)... | ||||||||||||||||||
35809 | SET 7,A | ... | ||||||||||||||||||
35811 | LD (65532),A | ... | ||||||||||||||||||
35814 | RET | Return |
Prev: 35749 | Up: Map | Next: 35815 |