Prev: A9C9 Up: Map Next: A9ED
A9D4: Timer 6 expires: the ring comes off
When timer 6 (started by A2C0) runs out, whoever holds the golden ring becomes the actor and, if the ring is still being worn (it is invisible), it is taken off (A2EC). If nobody holds the ring, nothing happens.
A9D4 LD IX,$C209 IX = the ring's record
A9D8 LD A,(IX+$01) Who holds it?
A9DB CP $FF
A9DD RET Z Nobody: nothing to do
A9DE CALL $9B25 IX = the holder's record...
A9E1 LD ($B5FC),IX ...who becomes the actor
A9E5 BIT 7,(IX+$07) Is the ring being worn (invisible)?
A9E9 JP Z,$A2EC Yes: take it off
A9EC RET
Prev: A9C9 Up: Map Next: A9ED