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

;--------------------------------------------------------
	.module fabsf
	
	.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 _fabsf
;--------------------------------------------------------
;  ram data
;--------------------------------------------------------
	.area DSEG
;--------------------------------------------------------
; overlayable items in  ram 
;--------------------------------------------------------
	.area OSEG    (OVR)
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
	.area XISEG
;--------------------------------------------------------
; extended address mode data
;--------------------------------------------------------
	.area XSEG
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
	.area GSINIT
	.area GSFINAL
	.area GSINIT
;--------------------------------------------------------
; Home
;--------------------------------------------------------
	.area HOME
	.area CSEG
;--------------------------------------------------------
; code
;--------------------------------------------------------
	.area CSEG
;------------------------------------------------------------
;Allocation info for local variables in function 'fabsf'
;------------------------------------------------------------
;x                         Allocated to stack - offset 2
;fl                        Allocated to stack - offset -4
;sloc0                     Allocated to stack - offset -6
;sloc1                     Allocated to stack - offset -8
;sloc2                     Allocated to stack - offset -12
;------------------------------------------------------------
;fabsf.c:24: float fabsf(const float x) reentrant
;	-----------------------------------------
;	 function fabsf
;	-----------------------------------------
_fabsf:
	ais	#-12
;fabsf.c:28: fl.f = x;
;     genAddrOf
	tsx
	aix	#8
;     storeRegToAop (hx, SOF(iTemp0), 0), stacked=0, isaddr=0
; transferRegReg(h,a)
	pshh
	pula
;     storeRegToAop (a, SOF(iTemp0), 1), stacked=0, isaddr=0
	sta	7,s
;     storeRegToAop (x, SOF(iTemp0), 0), stacked=0, isaddr=0
	stx	8,s
;     genPointerSet
;     genFarPointerSet
;     loadRegFromAop (hx, SOF(iTemp0), 0)
;     loadRegFromAop (a, SOF(iTemp0), 1)
	lda	7,s
;     loadRegFromAop (x, SOF(iTemp0), 0)
	ldx	8,s
; transferRegReg(a,h)
	psha
	pulh
;     loadRegFromAop (a, SOF(x), 3)
	lda	15,s
	sta	,x
	aix	#1
;     loadRegFromAop (a, SOF(x), 2)
	lda	16,s
	sta	,x
	aix	#1
;     loadRegFromAop (a, SOF(x), 1)
	lda	17,s
	sta	,x
	aix	#1
;     loadRegFromAop (a, SOF(x), 0)
	lda	18,s
	sta	,x
;fabsf.c:29: fl.l &= 0x7fffffff;
;     genAddrOf
	tsx
	aix	#8
;     storeRegToAop (hx, SOF(iTemp2), 0), stacked=0, isaddr=0
; transferRegReg(h,a)
	pshh
	pula
;     storeRegToAop (a, SOF(iTemp2), 1), stacked=0, isaddr=0
	sta	7,s
;     storeRegToAop (x, SOF(iTemp2), 0), stacked=0, isaddr=0
	stx	8,s
;     genAddrOf
	tsx
	aix	#8
;     storeRegToAop (hx, SOF(iTemp4), 0), stacked=0, isaddr=0
; transferRegReg(h,a)
	pshh
	pula
;     storeRegToAop (a, SOF(iTemp4), 1), stacked=0, isaddr=0
	sta	5,s
;     storeRegToAop (x, SOF(iTemp4), 0), stacked=0, isaddr=0
	stx	6,s
;     genPointerGet
;     genFarPointerGet
;     loadRegFromAop (hx, SOF(iTemp4), 0)
;     loadRegFromAop (a, SOF(iTemp4), 1)
	lda	5,s
;     loadRegFromAop (x, SOF(iTemp4), 0)
	ldx	6,s
; transferRegReg(a,h)
	psha
	pulh
	lda	,x
	aix	#1
;     storeRegToAop (a, SOF(iTemp6), 3), stacked=0, isaddr=0
	sta	1,s
	lda	,x
	aix	#1
;     storeRegToAop (a, SOF(iTemp6), 2), stacked=0, isaddr=0
	sta	2,s
	lda	,x
	aix	#1
;     storeRegToAop (a, SOF(iTemp6), 1), stacked=0, isaddr=0
	sta	3,s
	lda	,x
;     storeRegToAop (a, SOF(iTemp6), 0), stacked=0, isaddr=0
	sta	4,s
;     genAnd
;     loadRegFromAop (a, SOF(iTemp7), 0)
	lda	4,s
;     storeRegToAop (a, SOF(iTemp7), 0), stacked=0, isaddr=0
	sta	4,s
;     loadRegFromAop (a, SOF(iTemp7), 1)
	lda	3,s
;     storeRegToAop (a, SOF(iTemp7), 1), stacked=0, isaddr=0
	sta	3,s
;     loadRegFromAop (a, SOF(iTemp7), 2)
	lda	2,s
;     storeRegToAop (a, SOF(iTemp7), 2), stacked=0, isaddr=0
	sta	2,s
;     loadRegFromAop (a, SOF(iTemp7), 3)
	lda	1,s
	and	#0x7F
;     storeRegToAop (a, SOF(iTemp7), 3), stacked=0, isaddr=0
	sta	1,s
;     genPointerSet
;     genFarPointerSet
;     loadRegFromAop (hx, SOF(iTemp2), 0)
;     loadRegFromAop (a, SOF(iTemp2), 1)
	lda	7,s
;     loadRegFromAop (x, SOF(iTemp2), 0)
	ldx	8,s
; transferRegReg(a,h)
	psha
	pulh
;     loadRegFromAop (a, SOF(iTemp7), 3)
	lda	1,s
	sta	,x
	aix	#1
;     loadRegFromAop (a, SOF(iTemp7), 2)
	lda	2,s
	sta	,x
	aix	#1
;     loadRegFromAop (a, SOF(iTemp7), 1)
	lda	3,s
	sta	,x
	aix	#1
;     loadRegFromAop (a, SOF(iTemp7), 0)
	lda	4,s
	sta	,x
;fabsf.c:30: return fl.f;
;     genAddrOf
	tsx
	aix	#8
;     storeRegToAop (hx, SOF(iTemp8), 0), stacked=0, isaddr=0
; transferRegReg(h,a)
	pshh
	pula
;     storeRegToAop (a, SOF(iTemp8), 1), stacked=0, isaddr=0
	sta	1,s
;     storeRegToAop (x, SOF(iTemp8), 0), stacked=0, isaddr=0
	stx	2,s
;     genPointerGet
;     genFarPointerGet
;     loadRegFromAop (hx, SOF(iTemp8), 0)
;     loadRegFromAop (a, SOF(iTemp8), 1)
	lda	1,s
;     loadRegFromAop (x, SOF(iTemp8), 0)
	ldx	2,s
; transferRegReg(a,h)
	psha
	pulh
	lda	,x
	aix	#1
;     storeRegToAop (a, SOF(iTemp10), 3), stacked=0, isaddr=0
	sta	1,s
	lda	,x
	aix	#1
;     storeRegToAop (a, SOF(iTemp10), 2), stacked=0, isaddr=0
	sta	2,s
	lda	,x
	aix	#1
;     storeRegToAop (a, SOF(iTemp10), 1), stacked=0, isaddr=0
	sta	3,s
	lda	,x
;     storeRegToAop (a, SOF(iTemp10), 0), stacked=0, isaddr=0
	sta	4,s
;     genRet
;     loadRegFromAop (a, SOF(iTemp10), 3)
	lda	1,s
;     storeRegToAop (a, DIR(__ret3), 0), stacked=0, isaddr=0
	sta	*__ret3
;     loadRegFromAop (a, SOF(iTemp10), 2)
	lda	2,s
;     storeRegToAop (a, DIR(__ret2), 0), stacked=0, isaddr=0
	sta	*__ret2
;     loadRegFromAop (x, SOF(iTemp10), 1)
	ldx	3,s
;     storeRegToAop (x, REG(-,-,-,x), 0), stacked=0, isaddr=0
; transferRegReg(x,x)
;     loadRegFromAop (a, SOF(iTemp10), 0)
	lda	4,s
;     storeRegToAop (a, REG(-,-,-,a), 0), stacked=0, isaddr=0
; transferRegReg(a,a)
00101$:
	ais	#12
	rts
	.area CSEG
	.area XINIT
