Prev: 79D4 Up: Map Next: 7A17
79FD: Get ERIC's coordinates
Used by the routines at 79D4, 7BA0 and F78E. Returns with ERIC's coordinates (adjusted appropriately if he's jumping) in DE.
79FD LD DE,($AC61) Pick up ERIC's coordinates in DE
7A01 LD A,($7FFB) 7FFB holds ERIC's status flags
7A04 BIT 2,A Bit 2 will be set if ERIC is jumping
7A06 LD A,E Get ERIC's y-coordinate in D and x-coordinate in E
7A07 LD E,D
7A08 LD D,A
7A09 RET Z Return unless ERIC is jumping
This entry point is used by the routine at 6AA7 with ERIC's y-coordinate in A.
7A0A LD D,$9B This is the y-coordinate of the top floor
7A0C CP $9C Is ERIC on the top floor?
7A0E RET C Return if so
7A0F LD D,$A2 This is the y-coordinate of the middle floor
7A11 CP $A3 Is ERIC on the middle floor?
7A13 RET C Return if so
7A14 LD D,$A9 This is the y-coordinate of the bottom floor
7A16 RET
Prev: 79D4 Up: Map Next: 7A17