Sherlock: annotated disassembly

Routines

Prev: E22A Up: Map Next: E298
E28D: Refuse if the actor is the direct object
Fails (DC15) when $A036 = $A034 - doing the thing to yourself. Reached by the JP at E44F.
Output
F Fails ($DC15) when the actor is the direct object
E28D LD A,($A036) Read $A036 in "Game variables" into A - The actor ($A036) against the direct object ($A034)
E290 LD HL,$A034 Point HL at $A034 in "Game variables"
E293 CP (HL) Compare A with the byte at $A034 in "Game variables"
E294 JP Z,$DC15 If A equals the byte at $A034 in "Game variables", go back to the routine "Fail: A = 0, HL = 0, Z set" (DC15) - Same: fail (DC15)
E297 RET Return to the caller
Prev: E22A Up: Map Next: E298