home *** CD-ROM | disk | FTP | other *** search
- ! C68 8 byte floating point routine to test for zero
- !-----------------------------------------------------------------------------
- ! #1 First version Keith and Dave Walker 12/92
- ! #2 Changed entry/exit code for C68 v4.3 compatibility -djw- 09/93
- !-----------------------------------------------------------------------------
-
- .sect .text
-
- .define .Xdftst
-
- .Xdftst:
- move.l 4(sp),a0 ! pointer to value
- tst.l 0(a0) ! zero ?
- bne 8f !... NO exit immediately
- tst.l 4(a0) ! 2nd half tested
- 8:
- move.l (sp)+,a0 ! get return address
- add.l #4,sp ! collapse stack
- jmp (a0) ! return
-
-