Routines
| Prev: E52F | Up: Map | Next: E588 |
E57A: Script helper: tick the countdown (fail when it runs out)
|
Its pre-check (E573) refuses when the actor has no countdown. The body counts it down: still running, the instruction succeeds - taking no time, so the script goes straight on (scripts pair it with IDLE, E5A8, which takes a minute); at zero the countdown is removed and the instruction fails, so a script can 'do X until the time is up' with a success branch back to X.
|
||||||||
| E57A | DEFB $40,$00,$73,$E5 | Action record header: flags $40; bit 6: pre-check at E573; byte 1 $00 | ||||||
| E57E | DEC (IX+$01) | Count down | ||||||
| E581 | RET NZ | Still running: succeed | ||||||
| E582 | CALL $E58C | Run out: remove it... | ||||||
| E585 | JP $DC15 | ...and fail | ||||||
| Prev: E52F | Up: Map | Next: E588 |