Routines |
Prev: 94F5 | Up: Map | Next: 95A9 |
Used by the routine at ControlPlayer.
|
||||
CheckDoorway | 957D | PUSH DE | Stash DE on the stack. | |
957E | LD B,$00 | |||
9580 | LD HL,($5E1D) | HL=CurrentRoom_Width. | ||
9583 | INC L | |||
9584 | INC H | |||
9585 | LD E,(IX+$03) | |||
9588 | LD D,(IX+$04) | |||
958B | LD A,E | |||
958C | SUB $58 | |||
958E | JP P,CheckDoorway_0 | |||
9591 | NEG | |||
CheckDoorway_0 | 9593 | CP L | ||
9594 | JR C,CheckDoorway_1 | |||
9596 | INC B | |||
CheckDoorway_1 | 9597 | LD A,D | ||
9598 | SUB $68 | |||
959A | JP P,CheckDoorway_2 | |||
959D | NEG | |||
CheckDoorway_2 | 959F | CP H | ||
95A0 | JR C,CheckDoorway_3 | |||
95A2 | INC B | |||
CheckDoorway_3 | 95A3 | LD A,B | ||
95A4 | LD ($5E2D),A | |||
95A7 | POP DE | Restore DE from the stack. | ||
95A8 | RET | Return. |
Prev: 94F5 | Up: Map | Next: 95A9 |