Sherlock: annotated disassembly

Routines

Prev: CD47 Up: Map Next: CD95
CD82: Plan opcodes 13 and 15, PASS; and giving up for the turn
CD82: PASS spends one minute ($A01F = 1) and succeeds. CD8B: after ten failures, or a failure address that loops straight back, the actor spends a minute and saves its plan registers (D026).
Output
$A01F 1
CD82 LD HL,$0001 Load HL with $0001 - This takes one minute
CD85 LD ($A01F),HL Store HL in $A01F in "Game variables"
CD88 JP $CE8F Succeed
This entry point is used by the routines at CC78 and CEB8.
CD8B LD HL,$0001 Load HL with $0001 - Give up: one minute
CD8E LD ($A01F),HL Store HL in $A01F in "Game variables"
This entry point is used by the routines at CC78 and CE8F.
CD91 CALL $D026 Call D026 (inside "Load the current actor's plan registers") - Save the plan registers
CD94 RET Return to the caller
Prev: CD47 Up: Map Next: CD95