![]() |
Routines |
| Prev: A8D2 | Up: Map | Next: A926 |
|
The answer has to be given to Gollum as an order -- said to him, in the ORDERS slot he takes his turn from. It is right if the answer's word reference appears anywhere in it; with no answer, or a wrong one, "someone strangles you from behind." and PLAYER_DIES.
|
||||
| GOLLUM_HEARS_ANSWER | A8F6 | CALL FOR_REAL | No longer expecting an answer | |
| A8F9 | SUB A | |||
| A8FA | LD (RIDDLE_ASKED),A | |||
| A8FD | CALL TAKE_ORDER | Nothing said to him: strangled | ||
| A900 | JR Z,GOLLUM_HEARS_ANSWER_1 | |||
| A902 | LD BC,$0018 | Look through what was said for the answer word | ||
| A905 | LD DE,(RIDDLE) | |||
| A909 | LD A,(DE) | |||
| GOLLUM_HEARS_ANSWER_0 | A90A | CPIR | ||
| A90C | JR NZ,GOLLUM_HEARS_ANSWER_1 | |||
| A90E | INC DE | |||
| A90F | LD A,(DE) | |||
| A910 | DEC DE | |||
| A911 | CP (HL) | |||
| A912 | JR NZ,GOLLUM_HEARS_ANSWER_0 | |||
| A914 | RET | |||
| GOLLUM_HEARS_ANSWER_1 | A915 | CALL FOR_REAL | "someone strangles you from behind.", and dead | |
| A918 | LD A,$01 | |||
| A91A | LD (PRINTING_ON),A | |||
| A91D | LD HL,MSG_SOMEONE_STRANGLE_YOU | |||
| A920 | CALL RUN_MESSAGE_HL | |||
| A923 | JP PLAYER_DIES | |||
| Prev: A8D2 | Up: Map | Next: A926 |