Prev: A591 Up: Map Next: A5D5
A5BB: Character routine: the dragon speaks
If the dragon and Bilbo are in the same room: 'well thief your cunning has failed you this time. prepare to die', or, if Bilbo is invisible (he is wearing the ring: bit 7 of his flags at $C012 is clear), 'I may not be able to see you thief but I can still burn you. prepare to die'. The dragon's next instruction is BURN.
A5BB LD A,($C01B) Is Bilbo in the room where the dragon started its turn?
A5BE LD HL,$B5E7
A5C1 CP (HL)
A5C2 RET NZ No: nothing to say
A5C3 CALL $9C99 Dry run? Then stop: this would work
A5C6 LD A,($C012) Is Bilbo visible (bit 7 of his flags; clear while he wears the ring)?
A5C9 AND $80
A5CB LD HL,$B070 "I may not be able to see you thief but I can still burn you. prepare to die"
A5CE JR Z,$A5D3 Invisible: say that
A5D0 LD HL,$B04F "well thief your cunning has failed you this time. prepare to die"
A5D3 JR $A5B7 Print it
Prev: A591 Up: Map Next: A5D5