Sherlock: annotated disassembly

Routines

Prev: D39B Up: Map Next: D3E8
D3D5: Print thing IX's name
IY = IX + 7, its name words, then D3E8. Callers: $D148, $D5B8, $D659, $DF77.
Input
IX A thing's record
Output
The thing's name printed; IY kept
D3D5 PUSH IX Save IX on the stack - IY = the thing's record + 7: its name words
D3D7 POP IY Restore IY from the stack
This entry point is used by the routine at D526.
D3D9 PUSH IY Save IY on the stack
D3DB PUSH DE Save DE on the stack
D3DC LD DE,$0007 Load DE with $0007, the amount that is added next
D3DF ADD IY,DE Add DE to IY
D3E1 CALL $D3E8 Call the routine "Print the name words at IY" (D3E8) - Print them (D3E8)
D3E4 POP DE Restore DE from the stack
D3E5 POP IY Restore IY from the stack
D3E7 RET Return to the caller
Prev: D39B Up: Map Next: D3E8