Prev: AC93 Up: Map Next: ACDD
ACC0: Remove a link from a link list.
Used by the routine at Room_Events.
Input
IX Address of link to remove
stack Holds address of previous link to the one being removed.
Output
List_RemoveLink ACC0 LD E,(IX+$00) Get ptr the next link in list.
ACC3 LD D,(IX+$01)
ACC6 LD HL,(LinkList_Spare_Ptr) Get ptr to first of the empty links.
ACC9 LD (IX+$00),L Move removed link to top of empty link list.
ACCC LD (IX+$01),H
ACCF LD (LinkList_Spare_Ptr),IX
ACD3 POP HL Get return address.
ACD4 POP IX Get addres of previous link in main list.
ACD6 LD (IX+$00),E Connect existing links together.
ACD9 LD (IX+$01),D
ACDC JP (HL) Jump to return address found on stack.
Prev: AC93 Up: Map Next: ACDD