home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Vectronix 2
/
VECTRONIX2.iso
/
FILES_01
/
P_FOTRAN.LZH
/
68881
/
SETCS8.ASM
< prev
next >
Wrap
Assembly Source File
|
1987-12-31
|
813b
|
37 lines
title setcs8
module setcs8
;
; Copyright (C) 1988 Prospero Software
;
include fpumac.lib
section .setcs8
;
xdef setcr8 ; set control-register
xdef setsr8 ; set status-register
xref .hdnit ; reset 68881
;
setcr8:
move.l #$000000f0,d0
move.w #$9000,command
s0
move.l (sp),a0
move.l 4(sp),a1
and.l (a1),d0
s1 cmp.w #$8900,response
beq.s s1
sopr d0
jsr .hdnit
adda.w #8,sp
jmp (a0)
setsr8:
move.l #$00000050,d0
move.w #$8800,command
bra.s s0
END