Added fake floating point routines

This commit is contained in:
ceriel 1987-10-30 10:42:36 +00:00
parent 042d501cf5
commit 49db7fc60d
3 changed files with 42 additions and 7 deletions

View File

@ -1,4 +1,5 @@
libem_s.a
fakfp.s
aar.s
lar.s
sar.s

View File

@ -29,14 +29,9 @@ del = 0177
move.l d2, -(sp)
pea (fmt)
jsr (_printf)
lea (8, sp), sp
move.l (28, sp),(sp)
move.l (24, sp),-(sp)
jsr (_printf)
lea (8, sp), sp
lea (12, sp), sp
movem.l (sp)+, d0/d1/d2/a0
move.l (sp), (4, sp)
lea (4, sp), sp
jmp (_printf)
rts
1:

39
mach/m68020/libem/fakfp.s Normal file
View File

@ -0,0 +1,39 @@
.define .adf4, .adf8, .sbf4, .sbf8, .mlf4, .mlf8, .dvf4, .dvf8
.define .ngf4, .ngf8, .fif4, .fif8, .fef4, .fef8
.define .cif4, .cif8, .cuf4, .cuf8, .cfi, .cfu, .cff4, .cff8
.define .cmf4, .cmf8
.sect .text
.sect .rom
.sect .data
.sect .bss
! $Header$
.sect .text
.adf4:
.adf8:
.sbf4:
.sbf8:
.mlf4:
.mlf8:
.dvf4:
.dvf8:
.ngf4:
.ngf8:
.fif4:
.fif8:
.fef4:
.fef8:
.cif4:
.cif8:
.cuf4:
.cuf8:
.cfi:
.cfu:
.cff4:
.cff8:
.cmf4:
.cmf8:
move.l #18,-(sp)
jsr .trp
rts