Routines |
Prev: ADBA | Up: Map | Next: AE3C |
Used by the routine at ADBA.
|
||||||||
AE30 | EXX | Swap general registers. | ||||||
AE31 | LD HL,$AE3C | Point HL at the start of the flags. (AE3C) | ||||||
AE34 | ADD A,L | Add the room number. | ||||||
AE35 | JR NC,$AE38 | Move forward if there is no overflow (shouldn't be). | ||||||
AE37 | INC H | Otherwise increment H to allow for carry. | ||||||
AE38 | LD L,A | Set the low byte to give the correct address. | ||||||
AE39 | LD A,(HL) | Put the flag for this room in A. | ||||||
AE3A | EXX | Swap back general registers and return. | ||||||
AE3B | RET |
Prev: ADBA | Up: Map | Next: AE3C |