;--------------------------------------------------------
; File Created by SDCC : FreeWare ANSI-C Compiler
; Version 2.4.0 Tue Oct 12 01:21:41 2004

;--------------------------------------------------------
	.module modff
	
	.area CSEG
	.area GSINIT
	.area GSFINAL
	.area XINIT
	.area DSEG
	.area OSEG    (OVR)
	.area BSEG
	.area XSEG
	.area XISEG
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
	.globl _modff_PARM_2
	.globl _modff_PARM_1
	.globl _modff
;--------------------------------------------------------
;  ram data
;--------------------------------------------------------
	.area DSEG
_modff_sloc0_1_0::
	.ds 2
_modff_sloc1_1_0::
	.ds 2
_modff_sloc2_1_0::
	.ds 4
;--------------------------------------------------------
; overlayable items in  ram 
;--------------------------------------------------------
	.area OSEG    (OVR)
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
	.area XISEG
;--------------------------------------------------------
; extended address mode data
;--------------------------------------------------------
	.area XSEG
_modff_PARM_1::
	.ds 4
_modff_PARM_2::
	.ds 2
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
	.area GSINIT
	.area GSFINAL
	.area GSINIT
;--------------------------------------------------------
; Home
;--------------------------------------------------------
	.area HOME
	.area CSEG
;--------------------------------------------------------
; code
;--------------------------------------------------------
	.area CSEG
;------------------------------------------------------------
;Allocation info for local variables in function 'modff'
;------------------------------------------------------------
;sloc0                     Allocated with name '_modff_sloc0_1_0'
;sloc1                     Allocated with name '_modff_sloc1_1_0'
;sloc2                     Allocated with name '_modff_sloc2_1_0'
;x                         Allocated with name '_modff_PARM_1'
;y                         Allocated with name '_modff_PARM_2'
;------------------------------------------------------------
;modff.c:23: float modff(float x, float * y)
;	-----------------------------------------
;	 function modff
;	-----------------------------------------
_modff:
;modff.c:25: *y=((int)x);
;     genAssign
;     loadRegFromAop (a, EXT(_modff_PARM_2), 0)
	lda	(_modff_PARM_2 + 1)
;     storeRegToAop (a, DIR(_modff_sloc0_1_0), 0), stacked=0, isaddr=0
	sta	*(_modff_sloc0_1_0 + 1)
;     loadRegFromAop (a, EXT(_modff_PARM_2), 1)
	lda	_modff_PARM_2
;     storeRegToAop (a, DIR(_modff_sloc0_1_0), 1), stacked=0, isaddr=0
	sta	*_modff_sloc0_1_0
;     genAssign
;     loadRegFromAop (a, EXT(_modff_PARM_1), 0)
	lda	(_modff_PARM_1 + 3)
;     storeRegToAop (a, EXT(___fs2sint_PARM_1), 0), stacked=0, isaddr=1
	sta	(___fs2sint_PARM_1 + 3)
;     loadRegFromAop (a, EXT(_modff_PARM_1), 1)
	lda	(_modff_PARM_1 + 2)
;     storeRegToAop (a, EXT(___fs2sint_PARM_1), 1), stacked=0, isaddr=1
	sta	(___fs2sint_PARM_1 + 2)
;     loadRegFromAop (a, EXT(_modff_PARM_1), 2)
	lda	(_modff_PARM_1 + 1)
;     storeRegToAop (a, EXT(___fs2sint_PARM_1), 2), stacked=0, isaddr=1
	sta	(___fs2sint_PARM_1 + 1)
;     loadRegFromAop (a, EXT(_modff_PARM_1), 3)
	lda	_modff_PARM_1
;     storeRegToAop (a, EXT(___fs2sint_PARM_1), 3), stacked=0, isaddr=1
	sta	___fs2sint_PARM_1
;     genCall
	jsr	___fs2sint
;     loadRegFromAop (a, REG(-,-,-,a), 0)
; transferRegReg(a,a)
;     storeRegToAop (a, DIR(_modff_sloc1_1_0), 0), stacked=0, isaddr=0
	sta	*(_modff_sloc1_1_0 + 1)
;     loadRegFromAop (x, REG(-,-,-,x), 0)
; transferRegReg(x,x)
;     storeRegToAop (x, DIR(_modff_sloc1_1_0), 1), stacked=0, isaddr=0
	stx	*_modff_sloc1_1_0
;     genCall
;     loadRegFromAop (x, DIR(_modff_sloc1_1_0), 1)
	ldx	*_modff_sloc1_1_0
;     storeRegToAop (x, REG(-,-,-,x), 0), stacked=0, isaddr=0
; transferRegReg(x,x)
;     loadRegFromAop (a, DIR(_modff_sloc1_1_0), 0)
	lda	*(_modff_sloc1_1_0 + 1)
;     storeRegToAop (a, REG(-,-,-,a), 0), stacked=0, isaddr=0
; transferRegReg(a,a)
	jsr	___sint2fs
;     loadRegFromAop (a, REG(-,-,-,a), 0)
; transferRegReg(a,a)
;     storeRegToAop (a, DIR(_modff_sloc2_1_0), 0), stacked=0, isaddr=0
	sta	*(_modff_sloc2_1_0 + 3)
;     loadRegFromAop (x, REG(-,-,-,x), 0)
; transferRegReg(x,x)
;     storeRegToAop (x, DIR(_modff_sloc2_1_0), 1), stacked=0, isaddr=0
	stx	*(_modff_sloc2_1_0 + 2)
	mov	*__ret2,*(_modff_sloc2_1_0 + 1)
	mov	*__ret3,*_modff_sloc2_1_0
;     genPointerSet
;     genFarPointerSet
;     loadRegFromAop (hx, DIR(_modff_sloc0_1_0), 0)
	ldhx	*_modff_sloc0_1_0
;     loadRegFromAop (a, DIR(_modff_sloc2_1_0), 3)
	lda	*_modff_sloc2_1_0
	sta	,x
	aix	#1
;     loadRegFromAop (a, DIR(_modff_sloc2_1_0), 2)
	lda	*(_modff_sloc2_1_0 + 1)
	sta	,x
	aix	#1
;     loadRegFromAop (a, DIR(_modff_sloc2_1_0), 1)
	lda	*(_modff_sloc2_1_0 + 2)
	sta	,x
	aix	#1
;     loadRegFromAop (a, DIR(_modff_sloc2_1_0), 0)
	lda	*(_modff_sloc2_1_0 + 3)
	sta	,x
;modff.c:26: return (x-*y);
;     genAssign
;     loadRegFromAop (a, EXT(_modff_PARM_1), 0)
	lda	(_modff_PARM_1 + 3)
;     storeRegToAop (a, EXT(___fssub_PARM_1), 0), stacked=0, isaddr=1
	sta	(___fssub_PARM_1 + 3)
;     loadRegFromAop (a, EXT(_modff_PARM_1), 1)
	lda	(_modff_PARM_1 + 2)
;     storeRegToAop (a, EXT(___fssub_PARM_1), 1), stacked=0, isaddr=1
	sta	(___fssub_PARM_1 + 2)
;     loadRegFromAop (a, EXT(_modff_PARM_1), 2)
	lda	(_modff_PARM_1 + 1)
;     storeRegToAop (a, EXT(___fssub_PARM_1), 2), stacked=0, isaddr=1
	sta	(___fssub_PARM_1 + 1)
;     loadRegFromAop (a, EXT(_modff_PARM_1), 3)
	lda	_modff_PARM_1
;     storeRegToAop (a, EXT(___fssub_PARM_1), 3), stacked=0, isaddr=1
	sta	___fssub_PARM_1
;     genAssign
;     loadRegFromAop (a, DIR(_modff_sloc2_1_0), 0)
	lda	*(_modff_sloc2_1_0 + 3)
;     storeRegToAop (a, EXT(___fssub_PARM_2), 0), stacked=0, isaddr=1
	sta	(___fssub_PARM_2 + 3)
;     loadRegFromAop (a, DIR(_modff_sloc2_1_0), 1)
	lda	*(_modff_sloc2_1_0 + 2)
;     storeRegToAop (a, EXT(___fssub_PARM_2), 1), stacked=0, isaddr=1
	sta	(___fssub_PARM_2 + 2)
;     loadRegFromAop (a, DIR(_modff_sloc2_1_0), 2)
	lda	*(_modff_sloc2_1_0 + 1)
;     storeRegToAop (a, EXT(___fssub_PARM_2), 2), stacked=0, isaddr=1
	sta	(___fssub_PARM_2 + 1)
;     loadRegFromAop (a, DIR(_modff_sloc2_1_0), 3)
	lda	*_modff_sloc2_1_0
;     storeRegToAop (a, EXT(___fssub_PARM_2), 3), stacked=0, isaddr=1
	sta	___fssub_PARM_2
;     genCall
	jsr	___fssub
;     loadRegFromAop (a, REG(-,-,-,a), 0)
; transferRegReg(a,a)
;     storeRegToAop (a, DIR(_modff_sloc2_1_0), 0), stacked=0, isaddr=0
	sta	*(_modff_sloc2_1_0 + 3)
;     loadRegFromAop (x, REG(-,-,-,x), 0)
; transferRegReg(x,x)
;     storeRegToAop (x, DIR(_modff_sloc2_1_0), 1), stacked=0, isaddr=0
	stx	*(_modff_sloc2_1_0 + 2)
	mov	*__ret2,*(_modff_sloc2_1_0 + 1)
	mov	*__ret3,*_modff_sloc2_1_0
;     genRet
	mov	*_modff_sloc2_1_0,*__ret3
	mov	*(_modff_sloc2_1_0 + 1),*__ret2
;     loadRegFromAop (x, DIR(_modff_sloc2_1_0), 1)
	ldx	*(_modff_sloc2_1_0 + 2)
;     storeRegToAop (x, REG(-,-,-,x), 0), stacked=0, isaddr=0
; transferRegReg(x,x)
;     loadRegFromAop (a, DIR(_modff_sloc2_1_0), 0)
	lda	*(_modff_sloc2_1_0 + 3)
;     storeRegToAop (a, REG(-,-,-,a), 0), stacked=0, isaddr=0
; transferRegReg(a,a)
00101$:
	rts
	.area CSEG
	.area XINIT
