1987-05-15 09:11:10 +00:00
|
|
|
.sect .text; .sect .rom; .sect .data; .sect .bss; .sect .text
|
|
|
|
.sect .text
|
|
|
|
.define cif~,cuf~
|
|
|
|
.extern setint~,setfloat~
|
|
|
|
! $Header$
|
1984-07-19 12:51:00 +00:00
|
|
|
|
|
|
|
cif~:
|
|
|
|
mov (sp)+,r1
|
|
|
|
mov (sp)+,r0
|
|
|
|
jsr pc,setfloat~
|
|
|
|
mov (sp)+,r0
|
|
|
|
1: jsr pc,setint~
|
|
|
|
movif (sp)+,r0
|
|
|
|
movf r0,-(sp)
|
1984-07-19 13:09:53 +00:00
|
|
|
setd;seti
|
1984-07-19 12:51:00 +00:00
|
|
|
jmp (r1)
|
|
|
|
cuf~:
|
|
|
|
mov (sp)+,r1
|
|
|
|
mov (sp)+,r0
|
|
|
|
jsr pc,setfloat~
|
|
|
|
mov (sp)+,r0
|
|
|
|
cmp r0,$02
|
|
|
|
bne 1b
|
|
|
|
clr -(sp)
|
|
|
|
mov $04,r0
|
|
|
|
br 1b
|