| The Hobbit (v1.0) | Routines |
| Prev: 8708 | Up: Map | Next: 875C |
|
As 86ED, for the instrument.
|
||||
| 8745 | LD HL,$8339 | HL = the instrument's own collected words | ||
| 8748 | CALL $86BA | Search for the next object or room that fits them | ||
| 874B | CP $FF | |||
| 874D | RET Z | None left: give up | ||
| 874E | LD ($B5DA),A | Found one: it becomes the instrument, provisionally | ||
| 8751 | LD HL,$832F | |||
| 8754 | SET 1,(HL) | Remember we are still searching | ||
| 8756 | CALL $84DE | Would the whole action work with this instrument? | ||
| 8759 | JR Z,$8745 | No: try the next candidate | ||
| 875B | RET | Yes: this is a workable candidate | ||
| Prev: 8708 | Up: Map | Next: 875C |