home *** CD-ROM | disk | FTP | other *** search
- SECTION CODE "Test"
- CSECT _RemoveDBNode
-
- _AbsExecBase EQU 4
- XREF _LVORemove
- XREF _LVORemTail
- XREF _DataBase
-
- _RemoveDBNode link a5,#0 ; move a5 to stack to save it
- move.l a7,a5 ; move a7 to a5 to establish stack frame
- link a7,#0 ; link a7 to get local data space
- move.l $8(a5),a1
- cmp #0,a1 ; compare passed value with 0
- bne rem ; if not equal remove tail
-
- move.l _AbsExecBase,a6
- jsr _LVORemove(a6)
- jmp cool
-
- rem move.l _DataBase,a0
- move.l _AbsExecBase,a6
- jsr _LVORemTail(a6)
-
- cool unlk a7
- unlk a5
- rts
-
-
- END
-