Home | History | Annotate | Line # | Download | only in fpsp
x_bsun.sa revision 1.1.1.1
      1 *	MOTOROLA MICROPROCESSOR & MEMORY TECHNOLOGY GROUP
      2 *	M68000 Hi-Performance Microprocessor Division
      3 *	M68040 Software Package 
      4 *
      5 *	M68040 Software Package Copyright (c) 1993, 1994 Motorola Inc.
      6 *	All rights reserved.
      7 *
      8 *	THE SOFTWARE is provided on an "AS IS" basis and without warranty.
      9 *	To the maximum extent permitted by applicable law,
     10 *	MOTOROLA DISCLAIMS ALL WARRANTIES WHETHER EXPRESS OR IMPLIED,
     11 *	INCLUDING IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A
     12 *	PARTICULAR PURPOSE and any warranty against infringement with
     13 *	regard to the SOFTWARE (INCLUDING ANY MODIFIED VERSIONS THEREOF)
     14 *	and any accompanying written materials. 
     15 *
     16 *	To the maximum extent permitted by applicable law,
     17 *	IN NO EVENT SHALL MOTOROLA BE LIABLE FOR ANY DAMAGES WHATSOEVER
     18 *	(INCLUDING WITHOUT LIMITATION, DAMAGES FOR LOSS OF BUSINESS
     19 *	PROFITS, BUSINESS INTERRUPTION, LOSS OF BUSINESS INFORMATION, OR
     20 *	OTHER PECUNIARY LOSS) ARISING OF THE USE OR INABILITY TO USE THE
     21 *	SOFTWARE.  Motorola assumes no responsibility for the maintenance
     22 *	and support of the SOFTWARE.  
     23 *
     24 *	You are hereby granted a copyright license to use, modify, and
     25 *	distribute the SOFTWARE so long as this entire notice is retained
     26 *	without alteration in any modified and/or redistributed versions,
     27 *	and that such modified versions are clearly identified as such.
     28 *	No licenses are granted by implication, estoppel or otherwise
     29 *	under any patents or trademarks of Motorola, Inc.
     30 
     31 *
     32 *	x_bsun.sa 3.3 7/1/91
     33 *
     34 *	fpsp_bsun --- FPSP handler for branch/set on unordered exception
     35 *
     36 *	Copy the PC to FPIAR to maintain 881/882 compatability
     37 *
     38 *	The real_bsun handler will need to perform further corrective
     39 *	measures as outlined in the 040 User's Manual on pages
     40 *	9-41f, section 9.8.3.
     41 *
     42 
     43 X_BSUN	IDNT    2,1 Motorola 040 Floating Point Software Package
     44 
     45 	section	8
     46 
     47 	include	fpsp.h
     48 
     49 	xref	real_bsun
     50 
     51 	xdef	fpsp_bsun
     52 fpsp_bsun:
     53 *
     54 	link		a6,#-LOCAL_SIZE
     55 	fsave		-(a7)
     56 	movem.l		d0-d1/a0-a1,USER_DA(a6)
     57 	fmovem.x	fp0-fp3,USER_FP0(a6)
     58 	fmovem.l	fpcr/fpsr/fpiar,USER_FPCR(a6)
     59 
     60 *
     61 	move.l		EXC_PC(a6),USER_FPIAR(a6)
     62 *
     63 	movem.l		USER_DA(a6),d0-d1/a0-a1
     64 	fmovem.x	USER_FP0(a6),fp0-fp3
     65 	fmovem.l	USER_FPCR(a6),fpcr/fpsr/fpiar
     66 	frestore	(a7)+
     67 	unlk		a6
     68 	bra.l		real_bsun
     69 *
     70 	end
     71