home *** CD-ROM | disk | FTP | other *** search
/ Fish 'n' More 2 / fishmore-publicdomainlibraryvol.ii1991xetec.iso / fish / telecom / uucp_442 / src / lib / gettail.a < prev    next >
Text File  |  1990-08-02  |  280b  |  22 lines

  1.  
  2.         ;   GETTAIL.A
  3.         ;
  4.         ;   (c)Copyright 1990, Matthew Dillon, All Rights Reserved
  5.         ;
  6.  
  7.         section text,CODE
  8.  
  9.         xdef    _GetTail        ; node = GetTail(list:4(sp))
  10.  
  11. _GetTail:    move.l    4(sp),A0
  12.         move.l    8(A0),A0
  13.         tst.l    4(A0)
  14.         beq    gt0
  15.         move.l    A0,D0
  16.         rts
  17. gt0        moveq.l #0,D0
  18.         rts
  19.  
  20.         END
  21.  
  22.