E | x-coordinate of spot in front of ERIC |
29030 | 3A00D2 | LD A,(53760) | A=ERIC's animatory state |
29033 | 07 | RLCA | |
29034 | D0 | RET NC | Return if ERIC's facing left |
29035 | 3A00CD | LD A,(52480) | A=ALBERT's animatory state |
29038 | FE7F | CP 127 | 127: Is ALBERT facing left with his arm up? |
29040 | C0 | RET NZ | Return if not |
29041 | 3A01CD | LD A,(52481) | A=ALBERT's x-coordinate |
29044 | D601 | SUB 1 | |
29046 | BB | CP E | Is ERIC standing in front of ALBERT (facing him)? |
29047 | C0 | RET NZ | Return if not |
29048 | C1 | POP BC | |
29049 | C9 | RET |