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 >
Wrap
Assembly Source File
|
1991-08-16
|
254b
|
20 lines
section CODE
xdef _GetSuccOff ; sptr = GetSuccOff(node:4(sp), off:8(sp))
_GetSuccOff: movem.l 4(sp),D0/D1
move.l D0,A0
move.l 0(A0,D1.L),A0
tst.l (A0)
beq .gso0
suba.l D1,A0
move.l A0,D0
rts
.gso0: moveq.l #0,D0
rts
END