Prev: A232 Up: Map Next: A258
A240: Handler for the fast black river: SWIM
The enchanted river from the book: 'as soon as you touch the river you fall asleep and gently float away.' For Bilbo this is followed by 'time passes...', and the swimmer dies (96DD).
A240 CALL $9C99 Dry run? Then stop here: it would work
A243 LD HL,$AFA6 "as soon as X touches the river X falls asleep and gently floats away."
This entry point is used by the routine at A258.
A246 CALL $72D4 }
A249 LD A,($B5DB) Is the swimmer Bilbo himself?
A24C PUSH AF
A24D AND A
A24E LD HL,$AC9D "time passes..."
A251 CALL Z,$72D4 If it is Bilbo, add that too
A254 POP AF Restore A
A255 JP $96DD The swimmer dies
Prev: A232 Up: Map Next: A258