Prev: 87AD Up: Map Next: 8865
883E: Report a missing or unsuitable instrument
The instrument's counterpart of the end of 87AD. If nothing was found to match the words, 'i see nothing to unlock the door with'. Otherwise the command is left unfinished (8765) and the game asks 'unlock the door with what?' (ACB4), so the player can simply answer 'the key'. The words of the question are pushed by 8869.
883E CALL $8865 Push the action's own particle and preposition, for the "with what?" question
8841 LD A,($B5D9) A = the target
8844 CALL $71D9 HL = its own words
8847 PUSH HL Push them too, so the question can name the target ("unlock the door with what?")
8848 CALL $8869 Push the action's own words again, this time for the "I see nothing to..." message
884B LD HL,($8349)
884E PUSH HL
884F LD HL,$ACDB "I see nothing to <verb> the <target> <preposition>."
8852 LD A,($8332) Was there in fact exactly one possible instrument?
8855 AND A
8856 JP Z,$8781 No, none at all: print that message and give up
8859 LD A,($8346) Yes, exactly one: use it anyway
885C CALL $8765
885F LD HL,$ACB4 "<verb> the <target> <preposition> what?"
8862 JP $8781
Prev: 87AD Up: Map Next: 8865