![]() |
Routines |
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 |
31242 | LD D,155 | 155=top floor |
31244 | CP 156 | Is ERIC on the top floor? |
31246 | RET C | Return if so |
31247 | LD D,162 | 162=middle floor |
31249 | CP 163 | Is ERIC on the middle floor? |
31251 | RET C | Return if so |
31252 | LD D,169 | 169=bottom floor |
31254 | RET |