32000 | CDBE63 | CALL 25534 | Get y-coordinate of floor ERIC's closest to in D (3, 10, 14 or 17) | ||
32003 | 013BB9 | LD BC,47419 | B=185; C=59 | ||
32006 | CDD563 | CALL 25557 | Collect an identifier for ERIC's location (0-8) into A | ||
32009 | D0 | RET NC | Return if ERIC's on the top, middle or bottom floor | ||
32010 | 7B | LD A,E | A=ERIC's x-coordinate | ||
32011 | D630 | SUB 48 |
Return with:
|
||
32013 | FEC0 | CP 192 | |||
32015 | 9F | SBC A,A | |||
32016 | 3C | INC A | |||
32017 | 37 | SCF | |||
32018 | C8 | RET Z | |||
32019 | 87 | ADD A,A | |||
32020 | C9 | RET |