Sherlock: annotated disassembly

Routines

Prev: A490 Up: Map Next: A4BC
A4AB: HL = room A's record + 1
Used by the routine at A745.
Input
A The room number
Output
HL The room's record + 1
A4AB PUSH DE Save DE on the stack - HL = room A's record + 1 (D224)
A4AC PUSH IX Save IX on the stack
A4AE CALL $D224 Call the routine "Find a room record" (D224)
A4B1 PUSH IX Save IX on the stack
A4B3 POP HL Restore HL from the stack
A4B4 LD DE,$0001 Load DE with $0001, the amount that is added next
A4B7 ADD HL,DE Add DE to HL
A4B8 POP IX Restore IX from the stack
A4BA POP DE Restore DE from the stack
A4BB RET Return to the caller
Prev: A490 Up: Map Next: A4BC