Prev: C71C Up: Map Next: C9BA
C973: Turn timers
Ten 7-byte entries processed at the end of every turn by 9611, terminated by $FF. Each entry is: a reload value (copied into the count to start the timer), the count (0 = not running), the address of an 'expire' routine (run when the count reaches 0), a threshold, and the address of a 'tick' routine (run on each turn that the count is between 1 and the threshold; 0 = none). Only one timer may expire per turn.
Every timer gives a delayed consequence to something the player did:
Timer Started by Runs for What happens
0 the barrel is thrown through the trap door into the forest river (A4DB) 2 turns the barrel floats off to the long lake with whatever is in it (A4F4)
1 breaking the spider web (A2A7) 2 turns 'some spiders start mending the broken web'; the web is whole again and twice as strong (A950)
2 entering the place of black spiders, room 26 (C6A1) the turn of arrival and 3 more if Bilbo is still there, 'the spider web is slowly smothering you' and he dies (AA04)
3 opening the goblins' door from the goblins' big cavern (A3E7) 2 turns the door closes by itself (A400)
4 entering the deep bog, room 29 (C6A8) 1 turn 'you are slowly sinking into the bog', and Bilbo dies (A69E)
5 examining the magic door while invisible (A614) 4 turns the door opens, 'an elf sweeps past', the ring comes off (A9A7); next turn the door closes (A9C9)
6 putting the ring on (A2C0) 2-10 turns, random the ring comes off by itself (A9D4)
7 drinking the wine (A9ED) 5 turns Bilbo sobers up (A9FF)
8 entering the forest road or forest, rooms 2 and 3 (C6CC) 4 turns the pale bulbous eyes (AA13, AA2E)
9 entering the Elvenking's cellar (C6AF), and closing the side door (A996) repeats every 5 turns the side door of the Lonely Mountain appears for a turn and vanishes again (A985, A968)
C973 DEFB $02,$00,$F4,$A4,$00,$00,$00 Timer 0: the barrel floats away
C97A DEFB $02,$00,$50,$A9,$00,$00,$00 Timer 1: the spiders mend their web
C981 DEFB $05,$00,$04,$AA,$00,$00,$00 Timer 2: smothered in the spiders' place
C988 DEFB $02,$00,$00,$A4,$00,$00,$00 Timer 3: the goblins' door closes
C98F DEFB $02,$00,$9E,$A6,$02,$9E,$A6 Timer 4: sinking in the bog
C996 DEFB $04,$00,$C9,$A9,$01,$A7,$A9 Timer 5: the magic door and the elf
C99D DEFB $00,$00,$D4,$A9,$00,$00,$00 Timer 6: the ring wears off
C9A4 DEFB $05,$00,$FF,$A9,$00,$00,$00 Timer 7: drunkenness wears off
C9AB DEFB $04,$00,$2E,$AA,$03,$13,$AA Timer 8: the pale bulbous eyes
C9B2 DEFB $05,$00,$68,$A9,$01,$85,$A9 Timer 9: the side door appears and vanishes
C9B9 DEFB $FF End marker
Prev: C71C Up: Map Next: C9BA