![]() |
Routines |
24263 | CALL 28240 | Is ERIC on a staircase? |
24266 | RET C | Return if so |
24267 | LD A,8 | 8: ERIC hitting (raising fist) |
24269 | CALL 24247 | Adjust ERIC's animatory state, update SRB, and return to 24272 (below) when it's time to deal with ERIC again |
24272 | LD HL,53760 | Point HL at byte 0 of ERIC's buffer |
24275 | LD A,(HL) | A=ERIC's animatory state |
24276 | RRCA | Is ERIC raising his fist (A=8/136)? |
24277 | JP NC,30752 | If so, raise ERIC's fist fully now and check for victims |
24280 | LD A,97 | Message 97: DON'T HIT YOUR MATES |
24282 | CALL 63640 | Make any nearby teachers give ERIC lines |
24285 | LD A,8 | 8: ERIC hitting (lowering fist) |
24287 | CALL 24247 | Adjust ERIC's animatory state, update SRB, and return to 24290 (below) when it's time to deal with ERIC again |
24290 | XOR A | A=0: ERIC standing |
24291 | JP 23925 | Clear all of ERIC's status flags now that he's finished firing, hitting or kissing, and update SRB |