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 / GETSUCCOFF.ASM < prev    next >
Assembly Source File  |  1991-08-16  |  254b  |  20 lines

  1.  
  2.         section CODE
  3.  
  4.         xdef    _GetSuccOff        ; sptr = GetSuccOff(node:4(sp), off:8(sp))
  5.  
  6. _GetSuccOff:    movem.l  4(sp),D0/D1
  7.         move.l    D0,A0
  8.         move.l    0(A0,D1.L),A0
  9.         tst.l    (A0)
  10.         beq    .gso0
  11.         suba.l    D1,A0
  12.         move.l    A0,D0
  13.         rts
  14. .gso0:        moveq.l #0,D0
  15.         rts
  16.  
  17.         END
  18.  
  19.  
  20.