Routines |
Prev: 31188 | Up: Map | Next: 31255 |
31229 | LD DE,(44129) | Pick up ERIC's coordinates in DE | ||
31233 | LD A,(32763) | 32763 holds ERIC's status flags | ||
31236 | BIT 2,A | Bit 2 will be set if ERIC is jumping | ||
31238 | LD A,E | Get ERIC's y-coordinate in D and x-coordinate in E | ||
31239 | LD E,D | |||
31240 | LD D,A | |||
31241 | RET Z | Return unless ERIC is jumping | ||
This entry point is used by the routine at 27303 with ERIC's y-coordinate in A.
|
||||
31242 | LD D,155 | This is the y-coordinate of the top floor | ||
31244 | CP 156 | Is ERIC on the top floor? | ||
31246 | RET C | Return if so | ||
31247 | LD D,162 | This is the y-coordinate of the middle floor | ||
31249 | CP 163 | Is ERIC on the middle floor? | ||
31251 | RET C | Return if so | ||
31252 | LD D,169 | This is the y-coordinate of the bottom floor | ||
31254 | RET |
Prev: 31188 | Up: Map | Next: 31255 |