B | Number of characters to check |
C | 0 if punching character's facing right, 128 if left |
D | Number of first character to check |
H | Puncher's character number: 207 (ANGELFACE) or 210 (ERIC) |
27804 | CDAC6C | CALL 27820 | Are any characters in front of the puncher's fist? |
27807 | D8 | RET C | Return if not |
27808 | 1E00 | LD E,0 | |
27810 | 1A | LD A,(DE) | A=animatory state of character in front of puncher's fist |
27811 | E680 | AND 128 | |
27813 | A9 | XOR C | |
27814 | C8 | RET Z | Return with carry reset if character was hit in the face |
27815 | 14 | INC D | |
27816 | 10F2 | DJNZ 27804 | Consider any remaining characters |
27818 | 37 | SCF | Signal: no characters were hit |
27819 | C9 | RET |