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
/
GETTAILOFF.ASM
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Assembly Source File
|
1991-08-16
|
249 b
|
20 lines
section CODE
xdef _GetTailOff ; sptr = GetTailOff(list:4(sp), off:8(sp))
_GetTailOff: movem.l 4(sp),D0/D1
move.l D0,A0
move.l 8(A0),A0
tst.l 4(A0)
beq .gto0
sub.l D1,A0
move.l A0,D0
rts
.gto0: moveq.l #0,D0
rts
END