| The Hobbit (v1.0) | Routines |
| Prev: C6A8 | Up: Map | Next: C6CC |
|
Entering the cellar where the king keeps his barrels of wine brings the last part of the adventure to life. Three things happen:
So the dragon cannot threaten Bilbo, and Bard cannot help him, until Bilbo has reached the Elvenking's cellar. Like the butler's handler (C693), this runs every time Bilbo enters the cellar, restarting the side door timer at 3 each time.
|
||||
| C6AF | LD A,$03 | Start timer 9 (the Lonely Mountain's side door)... | ||
| C6B1 | LD ($C9B3),A | ...with a count of 3 | ||
| C6B4 | LD HL,$C02A | HL = the dragon's flags | ||
| C6B7 | BIT 3,(HL) | Is the dragon dead? | ||
| C6B9 | JR NZ,$C6C0 | Yes: skip | ||
| C6BB | LD A,$3C | Put the dragon (object 60) into its empty character-table slot... | ||
| C6BD | LD ($C9F2),A | ...so it starts acting | ||
| C6C0 | LD HL,$C3B9 | HL = Bard's flags | ||
| C6C3 | BIT 3,(HL) | Is Bard dead? | ||
| C6C5 | RET NZ | Yes: done | ||
| C6C6 | LD A,$46 | Put Bard (object 70) into his empty slot... | ||
| C6C8 | LD ($C9EB),A | ...so he starts waiting for orders | ||
| C6CB | RET | |||
| Prev: C6A8 | Up: Map | Next: C6CC |