1
; void __FASTCALL__ astar_DeletePath(struct astar_path *p)
2
; delete the path by freeing any memory associated with it
8
; enter: hl = struct astar_path *
9
; uses : af, bc, de, hl
22
ld a,(hl) ; is ref count == 0?
24
ret nz ; if not, no more freeing
28
; de = & struct astar_path
29
; hl = & struct astar_path.ref_count
35
ld l,a ; hl = & next struct astar_path
46
ret z ; no more paths!
53
dec (hl) ; ref count--
54
jp z, loop ; if zero, delete it