Sherlock: annotated disassembly

Routines

Prev: A4AB Up: Map Next: A4CD
A4BC: HL = thing A's record + 7
Used by the routines at A745, BA67, BF1C and CBC2.
Input
A The thing number
Output
HL The thing's record + 7, the start of its name words
A4BC PUSH DE Save DE on the stack - HL = thing A's record + 7, the start of its name words (D237)
A4BD PUSH IX Save IX on the stack
A4BF CALL $D237 Call the routine "Resolve an id (in A) to its full entity record" (D237)
A4C2 PUSH IX Save IX on the stack
A4C4 POP HL Restore HL from the stack
A4C5 LD DE,$0007 Load DE with $0007, the amount that is added next
A4C8 ADD HL,DE Add DE to HL
A4C9 POP IX Restore IX from the stack
A4CB POP DE Restore DE from the stack
A4CC RET Return to the caller
Prev: A4AB Up: Map Next: A4CD