home *** CD-ROM | disk | FTP | other *** search
/ The Fred Fish Collection 1.5 / ffcollection-1-5-1992-11.iso / ff_progs / prog_c / suplib.lzh / SUPLIB / SRC / GETTAIL.ASM < prev    next >
Assembly Source File  |  1991-08-16  |  328b  |  23 lines

  1.  
  2.         section CODE
  3.  
  4.         xdef    _GetTail        ; node = GetTail(list:4(sp))
  5.            IFD LATTICE
  6.         xdef    @GetTail
  7.            ENDC
  8.  
  9. _GetTail:    move.l    4(sp),A0
  10.            IFD LATTICE
  11. @GetTail:                    ; Lattice C V5.02 registerized params
  12.            ENDC
  13.         move.l    8(A0),A0
  14.         tst.l    4(A0)
  15.         beq    .gt0
  16.         move.l    A0,D0
  17.         rts
  18. .gt0        moveq.l #0,D0
  19.         rts
  20.  
  21.         END
  22.  
  23.