Prev: A784 Up: Map Next: A7C4
A7AA: Timer 4: sinking into the deep bog
Timer 4's routine for both its warning and its end. Standing in location 29, the deep bog, stops the timer; either way "you are slowly sinking into the bog", and if the timer has stopped, whether by running out or by the player being in the bog, PLAYER_DIES.
SINKING_IN_BOG A7AA LD A,(PLAYER_WHERE) In the bog? Stop the timer
A7AD CP $1D
A7AF JR NZ,SINKING_IN_BOG_0
A7B1 SUB A
A7B2 LD (TIMER4_COUNT),A
SINKING_IN_BOG_0 A7B5 LD HL,MSG_SLOWLY_SINK_INTO_THE "you are slowly sinking into the bog."
A7B8 CALL RUN_MESSAGE_HL
A7BB LD A,(TIMER4_COUNT) Stopped: dead
A7BE CP $00
A7C0 RET NZ
A7C1 JP PLAYER_DIES
Prev: A784 Up: Map Next: A7C4