Sherlock: annotated disassembly

Routines

Prev: B98C Up: Map Next: BA13
B9FA: Remove node IX from the order/remark list and free it
Unlinks IX from the list at 9FEE (A104 finds its predecessor) and frees it (A1C7).
Input
IX The node to remove
Output
The node unlinked from $9FEE and freed
B9FA LD IY,$9FEE Point IY at orders and remarks (9FEE) - Find the node before IX in the list at 9FEE (A104)
B9FE PUSH IX Save IX on the stack
BA00 POP DE Restore DE from the stack
BA01 CALL $A104 Call the routine "Find the node before node DE in the list at IY" (A104)
BA04 LD L,(IX-$02) Read byte -2 of the record at IX into L - Unhook IX: the previous node's link = IX's link
BA07 LD H,(IX-$01) Read byte -1 of the record at IX into H
BA0A LD (IY-$02),L Store L in byte -2 of the record at IY
BA0D LD (IY-$01),H Store H in byte -1 of the record at IY
BA10 JP $A1C7 Free it (A1C7)
Prev: B98C Up: Map Next: BA13