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

;--------------------------------------------------------
	.module vprintf
	.optsdcc -mds400 --model-flat24
	
.flat24 on		; 24 bit flat addressing
dpx = 0x93		; dpx register unknown to assembler
dps = 0x86		; dps register unknown to assembler
dpl1 = 0x84		; dpl1 register unknown to assembler
dph1 = 0x85		; dph1 register unknown to assembler
dpx1 = 0x95		; dpx1 register unknown to assembler
ap = 0x9C		; ap register unknown to assembler
_ap = 0x9C		; _ap register unknown to assembler
mcnt0 = 0xD1		; mcnt0 register unknown to assembler
mcnt1 = 0xD2		; mcnt1 register unknown to assembler
ma = 0xD3		; ma register unknown to assembler
mb = 0xD4		; mb register unknown to assembler
mc = 0xD5		; mc register unknown to assembler
F1 = 0xD1		; F1 user flag unknown to assembler
esp = 0x9B		; ESP user flag unknown to assembler
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
	.globl _vprintf_PARM_2
	.globl _vsprintf_PARM_3
	.globl _vsprintf_PARM_2
	.globl _output_float_PARM_7
	.globl _output_float_PARM_6
	.globl _output_float_PARM_5
	.globl _output_float_PARM_4
	.globl _output_float_PARM_3
	.globl _output_float_PARM_2
	.globl _vsprintf
	.globl _vprintf
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
_P4	=	0x0080
_SP	=	0x0081
_DPL	=	0x0082
_DPH	=	0x0083
_DPL1	=	0x0084
_DPH1	=	0x0085
_DPS	=	0x0086
_PCON	=	0x0087
_TCON	=	0x0088
_TMOD	=	0x0089
_TL0	=	0x008a
_TL1	=	0x008b
_TH0	=	0x008c
_TH1	=	0x008d
_CKCON	=	0x008e
_P1	=	0x0090
_EXIF	=	0x0091
_P4CNT	=	0x0092
_DPX	=	0x0093
_DPX1	=	0x0095
_SCON0	=	0x0098
_SBUF0	=	0x0099
_ESP	=	0x009b
_AP	=	0x009c
_ACON	=	0x009d
_P2	=	0x00a0
_P5	=	0x00a1
_P5CNT	=	0x00a2
_IE	=	0x00a8
_P3	=	0x00b0
_IP	=	0x00b8
_SCON1	=	0x00c0
_SBUF1	=	0x00c1
_PMR	=	0x00c4
_MCON	=	0x00c6
_TA	=	0x00c7
_T2CON	=	0x00c8
_T2MOD	=	0x00c9
_RCAP2L	=	0x00ca
_RTL2	=	0x00ca
_RCAP2H	=	0x00cb
_RTH2	=	0x00cb
_TL2	=	0x00cc
_TH2	=	0x00cd
_PSW	=	0x00d0
_MCNT0	=	0x00d1
_MCNT1	=	0x00d2
_MA	=	0x00d3
_MB	=	0x00d4
_MC	=	0x00d5
_WDCON	=	0x00d8
_ACC	=	0x00e0
_EIE	=	0x00e8
_MXAX	=	0x00ea
_B	=	0x00f0
_EIP	=	0x00f8
;--------------------------------------------------------
; special function bits 
;--------------------------------------------------------
_IT0	=	0x0088
_IE0	=	0x0089
_IT1	=	0x008a
_IE1	=	0x008b
_TR0	=	0x008c
_TF0	=	0x008d
_TR1	=	0x008e
_TF1	=	0x008f
_T2	=	0x0090
_T2EX	=	0x0091
_RXD1	=	0x0092
_TXD1	=	0x0093
_INT2	=	0x0094
_INT3	=	0x0095
_INT4	=	0x0096
_INT5	=	0x0097
_RI_0	=	0x0098
_TI_0	=	0x0099
_RB8_0	=	0x009a
_TB8_0	=	0x009b
_REN_0	=	0x009c
_SM2_0	=	0x009d
_SM1_0	=	0x009e
_SM0_0	=	0x009f
_FE_0	=	0x009f
_EX0	=	0x00a8
_ET0	=	0x00a9
_EX1	=	0x00aa
_ET1	=	0x00ab
_ES0	=	0x00ac
_ET2	=	0x00ad
_ES1	=	0x00ae
_EA	=	0x00af
_RXD0	=	0x00b0
_TXD0	=	0x00b1
_INT0	=	0x00b2
_INT1	=	0x00b3
_T0	=	0x00b4
_T1	=	0x00b5
_WR	=	0x00b6
_RD	=	0x00b7
_PX0	=	0x00b8
_PT0	=	0x00b9
_PX1	=	0x00ba
_PT1	=	0x00bb
_PS0	=	0x00bc
_PT2	=	0x00bd
_PS1	=	0x00be
_RI_1	=	0x00c0
_TI_1	=	0x00c1
_RB8_1	=	0x00c2
_TB8_1	=	0x00c3
_REN_1	=	0x00c4
_SM2_1	=	0x00c5
_SM1_1	=	0x00c6
_SM0_1	=	0x00c7
_FE_1	=	0x00c7
_CP_RL	=	0x00c8
_C_T	=	0x00c9
_TR2	=	0x00ca
_EXEN2	=	0x00cb
_TCLK	=	0x00cc
_RCLK	=	0x00cd
_EXF2	=	0x00ce
_TF2	=	0x00cf
_P	=	0x00d0
_F1	=	0x00d1
_OV	=	0x00d2
_RS0	=	0x00d3
_RS1	=	0x00d4
_F0	=	0x00d5
_AC	=	0x00d6
_CY	=	0x00d7
_RWT	=	0x00d8
_EWT	=	0x00d9
_WDRF	=	0x00da
_WDIF	=	0x00db
_PFI	=	0x00dc
_EPFI	=	0x00dd
_POR	=	0x00de
_SMOD_1	=	0x00df
_EX2	=	0x00e8
_EX3	=	0x00e9
_EX4	=	0x00ea
_EX5	=	0x00eb
_EWDI	=	0x00ec
_C1IE	=	0x00ed
_C0IE	=	0x00ee
_CANBIE	=	0x00ef
_PX2	=	0x00f8
_PX3	=	0x00f9
_PX4	=	0x00fa
_PX5	=	0x00fb
_PWDI	=	0x00fc
_C1IP	=	0x00fd
_C0IP	=	0x00fe
_CANBIP	=	0x00ff
;--------------------------------------------------------
; overlayable register banks 
;--------------------------------------------------------
	.area REG_BANK_0	(REL,OVR,DATA)
	.ds 8
	.area REG_BANK_3	(REL,OVR,DATA)
	.ds 8
;--------------------------------------------------------
; internal ram data
;--------------------------------------------------------
	.area DSEG    (DATA)
_value:
	.ds 5
;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
	.area OSEG    (OVR,DATA)
;--------------------------------------------------------
; indirectly addressable internal ram data
;--------------------------------------------------------
	.area ISEG    (DATA)
;--------------------------------------------------------
; bit data
;--------------------------------------------------------
	.area BSEG    (BIT)
_output_to_string:
	.ds 1
_lower_case:
	.ds 1
_lsd:
	.ds 1
_vsprintf_left_justify_1_1:
	.ds 1
_vsprintf_zero_padding_1_1:
	.ds 1
_vsprintf_prefix_sign_1_1:
	.ds 1
_vsprintf_prefix_space_1_1:
	.ds 1
_vsprintf_signed_argument_1_1:
	.ds 1
_vsprintf_char_argument_1_1:
	.ds 1
_vsprintf_long_argument_1_1:
	.ds 1
_vsprintf_float_argument_1_1:
	.ds 1
;--------------------------------------------------------
; external ram data
;--------------------------------------------------------
	.area XSEG    (XDATA)
_output_ptr:
	.ds 4
_radix:
	.ds 1
_charsOutputted:
	.ds 2
_output_float_PARM_2::
	.ds 1
_output_float_PARM_3::
	.ds 1
_output_float_PARM_4::
	.ds 1
_output_float_PARM_5::
	.ds 1
_output_float_PARM_6::
	.ds 1
_output_float_PARM_7::
	.ds 1
_output_float_f_1_1::
	.ds 4
_output_float_negative_1_1::
	.ds 1
_output_float_integerPart_1_1::
	.ds 4
_output_float_decimalPart_1_1::
	.ds 4
_output_float_fpBuffer_1_1::
	.ds 128
_output_float_sloc1_1_0::
	.ds 4
_output_float_sloc2_1_0::
	.ds 4
_vsprintf_PARM_2::
	.ds 4
_vsprintf_PARM_3::
	.ds 4
_vprintf_PARM_2::
	.ds 4
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
	.area XISEG   (XDATA)
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
	.area GSINIT  (CODE)
	.area GSFINAL (CODE)
	.area GSINIT  (CODE)
;--------------------------------------------------------
; Home
;--------------------------------------------------------
	.area HOME    (CODE)
	.area CSEG    (CODE)
;--------------------------------------------------------
; code
;--------------------------------------------------------
	.area CSEG    (CODE)
;------------------------------------------------------------
;Allocation info for local variables in function 'output_char'
;------------------------------------------------------------
;c                         Allocated to registers r2 
;------------------------------------------------------------
;	vprintf.c:86: static void output_char( char c ) reentrant
;	genFunction 
;	-----------------------------------------
;	 function output_char
;	-----------------------------------------
_output_char:
	ar2 = 0x02
	ar3 = 0x03
	ar4 = 0x04
	ar5 = 0x05
	ar6 = 0x06
	ar7 = 0x07
	ar0 = 0x00
	ar1 = 0x01
;	genReceive 
	mov	r2,dpl
;	vprintf.c:88: if (output_to_string)
;	genIfx 
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  _output_to_string,00102$
00107$:
;	vprintf.c:90: *output_ptr++ = c;
;	genAssign 
	mov	dptr,#_output_ptr
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r3,a
	inc	dptr
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
;	genPointerSet 
	mov	dpl,r3
	mov	dph,r4
	mov	dpx,r5
	mov	b,r6
	mov	a,r2
	lcall	__gptrput
;	genPlus 
	mov	dptr,#_output_ptr
	mov	a,#0x01
	add	a,r3
	movx	@dptr,a
; Peephole 180   changed mov to clr
	clr  a
	addc	a,r4
	inc	dptr
	movx	@dptr,a
; Peephole 180   changed mov to clr
	clr  a
	addc	a,r5
	inc	dptr
	movx	@dptr,a
	inc	dptr
	mov	a,r6
	movx	@dptr,a
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00103$
00102$:
;	vprintf.c:94: putchar( c );
;	genCall 
;	genSend argreg = 1, size = 1 
	mov	dpl,r2
	lcall	_putchar
;	genLabel 
00103$:
;	vprintf.c:96: charsOutputted++;
;	genAssign 
	mov	dptr,#_charsOutputted
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
;	genPlus 
	mov	dptr,#_charsOutputted
	mov	a,#0x01
	add	a,r2
	movx	@dptr,a
; Peephole 180   changed mov to clr
	clr  a
	addc	a,r3
	inc	dptr
	movx	@dptr,a
;	genLabel 
00104$:
;	genEndFunction 
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'output_digit'
;------------------------------------------------------------
;n                         Allocated to registers r2 
;------------------------------------------------------------
;	vprintf.c:101: static void output_digit( unsigned char n ) reentrant
;	genFunction 
;	-----------------------------------------
;	 function output_digit
;	-----------------------------------------
_output_digit:
;	genReceive 
	mov	r2,dpl
;	vprintf.c:103: output_char( n <= 9 ? '0'+n : 
;	genCmpGt 
;	genCmp
	clr	c
	mov	a,#0x09
	subb	a,r2
	clr	a
	rlc	a
;	genNot 
; Peephole 105   removed redundant mov
	mov  r3,a
	cjne	a,#1,00109$
00109$:
	clr	a
	rlc	a
;	genIfx 
; Peephole 105   removed redundant mov
	mov  r3,a
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00103$
00110$:
;	genPlus 
	mov	a,#0x30
	add	a,r2
	mov	r3,a
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00104$
00103$:
;	vprintf.c:104: (lower_case ? n+(char)('a'-10) : n+(char)('A'-10)) );
;	genIfx 
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  _lower_case,00105$
00111$:
;	genPlus 
	mov	a,#0x57
	add	a,r2
	mov	r4,a
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00106$
00105$:
;	genPlus 
	mov	a,#0x37
	add	a,r2
	mov	r4,a
;	genLabel 
00106$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar3,r4
;	genLabel 
00104$:
;	genCall 
;	genSend argreg = 1, size = 1 
	mov	dpl,r3
	lcall	_output_char
;	genLabel 
00101$:
;	genEndFunction 
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'output_2digits'
;------------------------------------------------------------
;b                         Allocated to registers r2 
;------------------------------------------------------------
;	vprintf.c:109: static void output_2digits( unsigned char b ) reentrant
;	genFunction 
;	-----------------------------------------
;	 function output_2digits
;	-----------------------------------------
_output_2digits:
;	genReceive 
	mov	r2,dpl
;	vprintf.c:111: output_digit( b>>4 );
;	genRightShift 
;	genRightShiftLiteral (4), size 1
;	genrshOne
	mov	a,r2
	swap	a
	anl	a,#0x0F
	mov	r3,a
;	genCall 
	push	ar2
;	genSend argreg = 1, size = 1 
	mov	dpl,r3
	lcall	_output_digit
	pop	ar2
;	vprintf.c:112: output_digit( b&0x0F );
;	genAnd 
	anl	ar2,#0x0F
;	genCall 
;	genSend argreg = 1, size = 1 
	mov	dpl,r2
	lcall	_output_digit
;	genLabel 
00101$:
;	genEndFunction 
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'calculate_digit'
;------------------------------------------------------------
;i                         Allocated to registers 
;------------------------------------------------------------
;	vprintf.c:117: static void calculate_digit( void )
;	genFunction 
;	-----------------------------------------
;	 function calculate_digit
;	-----------------------------------------
_calculate_digit:
;	vprintf.c:121: for( i = 32; i != 0; i-- )
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	r2,#0x20
;	genLabel 
00103$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x00,00112$
; Peephole 132   changed ljmp to sjmp
	sjmp 00107$
00112$:
;	vprintf.c:140: _endasm;
;	genInline 
	  clr c
	  mov a,_value+0
	  rlc a
	  mov _value+0,a
	  mov a,_value+1
	  rlc a
	  mov _value+1,a
	  mov a,_value+2
	  rlc a
	  mov _value+2,a
	  mov a,_value+3
	  rlc a
	  mov _value+3,a
	  mov a,_value+4
	  rlc a
	  mov _value+4,a
;	vprintf.c:142: if (radix <= value.byte[4] )
;	genPointerGet 
; Peephole 221a remove redundant move
;	genCmpGt 
	mov	dptr,#_radix
;	genCmp
	clr	c
	mov	a,0x0004 + _value
	xch	a, b
	movx	a,@dptr
	xch	a, b
	subb	a,b
;	genIfxJump
; Peephole 132   changed ljmp to sjmp
; Peephole 160   removed sjmp by inverse jump logic
	jc   00105$
00113$:
;	vprintf.c:144: value.byte[4] -= radix;
;	genPointerGet 
; Peephole 221a remove redundant move
;	genMinus 
	mov	dptr,#_radix
	clr	c
	movx	a,@dptr
	mov	b,a
	mov	a,0x0004 + _value
	subb	a,b
;	genPointerSet 
	mov	(_value + 0x0004),a
;	vprintf.c:145: value.byte[0]++;
;	genPointerGet 
	mov	r3,_value
;	genPlus 
	mov	a,#0x01
	add	a,r3
;	genPointerSet 
	mov	_value,a
;	genLabel 
00105$:
;	vprintf.c:121: for( i = 32; i != 0; i-- )
;	genMinus 
	dec	r2
;	genGoto 
	ljmp	00103$
;	genLabel 
00107$:
;	genEndFunction 
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'output_float'
;------------------------------------------------------------
;reqWidth                  Allocated with name '_output_float_PARM_2'
;reqDecimals               Allocated with name '_output_float_PARM_3'
;left                      Allocated with name '_output_float_PARM_4'
;zero                      Allocated with name '_output_float_PARM_5'
;sign                      Allocated with name '_output_float_PARM_6'
;space                     Allocated with name '_output_float_PARM_7'
;f                         Allocated with name '_output_float_f_1_1'
;negative                  Allocated with name '_output_float_negative_1_1'
;integerPart               Allocated with name '_output_float_integerPart_1_1'
;decimalPart               Allocated with name '_output_float_decimalPart_1_1'
;fpBuffer                  Allocated with name '_output_float_fpBuffer_1_1'
;fpBI                      Allocated to registers r7 
;fpBD                      Allocated to registers 
;minWidth                  Allocated to registers r2 
;i                         Allocated to registers r0 
;exp                       Allocated to registers r6 
;sloc0                     Allocated with name '_output_float_sloc0_1_0'
;sloc1                     Allocated with name '_output_float_sloc1_1_0'
;sloc2                     Allocated with name '_output_float_sloc2_1_0'
;sloc3                     Allocated with name '_output_float_sloc3_1_0'
;------------------------------------------------------------
;	vprintf.c:162: static void output_float (float f, unsigned char reqWidth, 
;	genFunction 
;	-----------------------------------------
;	 function output_float
;	-----------------------------------------
_output_float:
;	genReceive 
	mov     dps, #1
	mov     dptr, #_output_float_f_1_1
	mov	a,dpl
	movx	@dptr,a
	inc	dptr
	mov	a,dph
	movx	@dptr,a
	inc	dptr
	mov	a,dpx
	movx	@dptr,a
	inc	dptr
	mov	a,b
	movx	@dptr,a
	mov	dps,#0
;	vprintf.c:166: char negative=0;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_negative_1_1
; Peephole 180   changed mov to clr
	clr  a
	movx	@dptr,a
;	vprintf.c:170: char fpBI=0, fpBD;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r7,#0x00
;	vprintf.c:174: if (f<0) {
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#___fslt_PARM_2
; Peephole 101   removed redundant mov
; Peephole 180   changed mov to clr
	clr  a
	movx @dptr,a
	inc  dptr
	movx @dptr,a
	inc	dptr
; Peephole 101   removed redundant mov
; Peephole 180   changed mov to clr
	clr  a
	movx @dptr,a
	inc  dptr
	movx @dptr,a
;	genCall 
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_f_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fslt
;	genIfx 
	mov	a,dpl
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00102$
00232$:
;	vprintf.c:175: negative=1;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_negative_1_1
	mov	a,#0x01
	movx	@dptr,a
;	vprintf.c:176: f=-f;
;	genUminus 
	mov	dptr,#_output_float_f_1_1
	mov	dps, #1
	mov	dptr, #_output_float_f_1_1
	dec	dps
;	genUminusFloat
	movx	a,@dptr
	inc	dps
	movx	@dptr,a
	dec	dps
	inc	dptr
	movx	a,@dptr
	inc	dps
	inc	dptr
	movx	@dptr,a
	dec	dps
	inc	dptr
	movx	a,@dptr
	inc	dps
	inc	dptr
	movx	@dptr,a
	dec	dps
	inc	dptr
	movx	a,@dptr
	cpl	acc.7
	inc	dps
	inc	dptr
	movx	@dptr,a
	mov	dps,#0
;	genLabel 
00102$:
;	vprintf.c:179: if (f>0x00ffffff) {
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#___fsgt_PARM_2
; Peephole 101   removed redundant mov
	mov  a,#0xFF
	movx @dptr,a
	inc  dptr
	movx @dptr,a
	inc	dptr
	mov	a,#0x7F
	movx	@dptr,a
	inc	dptr
	mov	a,#0x4B
	movx	@dptr,a
;	genCall 
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_f_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fsgt
;	genIfx 
	mov	a,dpl
;	genIfxJump
	jnz	00233$
	ljmp	00111$
00233$:
;	vprintf.c:183: for (exp = 0; f >= 10.0; exp++) f /=10.0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	r6,#0x00
;	genLabel 
00179$:
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#___fslt_PARM_2
; Peephole 101   removed redundant mov
; Peephole 180   changed mov to clr
	clr  a
	movx @dptr,a
	inc  dptr
	movx @dptr,a
	inc	dptr
	mov	a,#0x20
	movx	@dptr,a
	inc	dptr
	mov	a,#0x41
	movx	@dptr,a
;	genCall 
	push	ar6
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_f_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fslt
	pop	ar6
;	genIfx 
	mov	a,dpl
;	genIfxJump
	jz	00234$
	ljmp	00196$
00234$:
;	genIpush 
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#___fsdiv_PARM_2
; Peephole 101   removed redundant mov
; Peephole 180   changed mov to clr
	clr  a
	movx @dptr,a
	inc  dptr
	movx @dptr,a
	inc	dptr
	mov	a,#0x20
	movx	@dptr,a
	inc	dptr
	mov	a,#0x41
	movx	@dptr,a
;	genCall 
	push	ar6
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_f_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fsdiv
	mov	r2,dpl
	mov	r3,dph
	mov	r4,dpx
	mov	r5,b
	pop	ar6
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_f_1_1
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	genPlus 
	inc	r6
;	did genPlusIncr
;	genIpop 
;	genGoto 
	ljmp	00179$
;	genLabel 
00196$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar7,r6
;	genLabel 
00183$:
;	vprintf.c:184: for (       ; f < 1.0;   exp--) f *=10.0;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#___fslt_PARM_2
; Peephole 101   removed redundant mov
; Peephole 180   changed mov to clr
	clr  a
	movx @dptr,a
	inc  dptr
	movx @dptr,a
	inc	dptr
	mov	a,#0x80
	movx	@dptr,a
	inc	dptr
	mov	a,#0x3F
	movx	@dptr,a
;	genCall 
	push	ar7
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_f_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fslt
	mov	r1,dpl
	pop	ar7
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar6,r7
;	genIfx 
	mov	a,r1
;	genIfxJump
	jnz	00235$
	ljmp	00186$
00235$:
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#___fsmul_PARM_2
; Peephole 101   removed redundant mov
; Peephole 180   changed mov to clr
	clr  a
	movx @dptr,a
	inc  dptr
	movx @dptr,a
	inc	dptr
	mov	a,#0x20
	movx	@dptr,a
	inc	dptr
	mov	a,#0x41
	movx	@dptr,a
;	genCall 
	push	ar7
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_f_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fsmul
	mov	r2,dpl
	mov	r3,dph
	mov	r4,dpx
	mov	r5,b
	pop	ar7
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_f_1_1
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	genMinus 
	dec	r7
;	genGoto 
	ljmp	00183$
;	genLabel 
00186$:
;	vprintf.c:186: if (negative) {
;	genIfx 
	mov	dptr,#_output_float_negative_1_1
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00106$
00236$:
;	vprintf.c:187: putchar ('-');
;	genCall 
	push	ar6
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2D
	lcall	_putchar
	pop	ar6
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00107$
00106$:
;	vprintf.c:189: if (sign) {
;	genIfx 
	mov	dptr,#_output_float_PARM_6
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00107$
00237$:
;	vprintf.c:190: putchar ('+');
;	genCall 
	push	ar6
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2B
	lcall	_putchar
	pop	ar6
;	genLabel 
00107$:
;	vprintf.c:193: output_float(f, 0, reqDecimals, 0, 0, 0, 0);
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_2
; Peephole 180   changed mov to clr
;	genAssign 
;	genAssign: resultIsFar = TRUE
; Peephole 180   changed mov to clr
; Peephole 219 removed redundant clear
;	genAssign 
;	genAssign: resultIsFar = TRUE
; Peephole 180   changed mov to clr
;	genAssign 
;	genAssign: resultIsFar = TRUE
; Peephole 180   changed mov to clr
; Peephole 219 removed redundant clear
; Peephole 219a removed redundant clear
	clr   a
	movx  @dptr,a
	mov   dptr,#_output_float_PARM_4
	movx  @dptr,a
	mov   dptr,#_output_float_PARM_5
	movx  @dptr,a
	mov   dptr,#_output_float_PARM_6
	movx  @dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_7
; Peephole 180   changed mov to clr
	clr  a
	movx	@dptr,a
;	genCall 
	push	ar6
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_f_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	_output_float
	pop	ar6
;	vprintf.c:194: putchar ('e');
;	genCall 
	push	ar6
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x65
	lcall	_putchar
	pop	ar6
;	vprintf.c:195: if (exp<0) {
;	genCmpLt 
;	genCmp
	mov	a,r6
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  acc.7,00109$
00238$:
;	vprintf.c:196: putchar ('-');
;	genCall 
	push	ar6
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2D
	lcall	_putchar
	pop	ar6
;	vprintf.c:197: exp = -exp;
;	genUminus 
	clr	c
	clr	a
	subb	a,r6
	mov	r6,a
;	genLabel 
00109$:
;	vprintf.c:199: putchar ('0'+exp/10);
;	genDiv 
	clr	F0
	mov	b,#0x0a
	mov	a,r6
	jnb	acc.7,00239$
	cpl	F0
	cpl	a
	inc	a
00239$:
	nop	; workaround for DS80C390 div bug.
	div	ab
	jnb	F0,00240$
	cpl	a
	inc	a
00240$:
;	genPlus 
; Peephole 214 reduced some extra movs
; Peephole 215 removed some movs
	add  a,#0x30
	mov  r0,a
;	genCall 
	push	ar6
;	genSend argreg = 1, size = 1 
	mov	dpl,r0
	lcall	_putchar
	pop	ar6
;	vprintf.c:200: putchar ('0'+exp%10);
;	genMod 
	mov	b,#0x0a
	mov	a,r6
	clr	F0
	jnb	acc.7,00241$
	setb	F0
	cpl	a
	inc	a
00241$:
	nop	; workaround for DS80C390 div bug.
	div	ab
	mov	a,b
	jnb	F0,00242$
	cpl	a
	inc	a
00242$:
;	genPlus 
; Peephole 214 reduced some extra movs
; Peephole 215 removed some movs
	add  a,#0x30
	mov  r6,a
;	genCall 
;	genSend argreg = 1, size = 1 
	mov	dpl,r6
	lcall	_putchar
;	vprintf.c:201: return;
;	genRet 
	ljmp	00187$
;	genLabel 
00111$:
;	vprintf.c:205: integerPart=f;
;	genCall 
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_f_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fs2ulong
	mov	r6,dpl
	mov	r0,dph
	mov	r1,dpx
	mov	r2,b
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_integerPart_1_1
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
	inc	dptr
	mov	a,r1
	movx	@dptr,a
	inc	dptr
	mov	a,r2
	movx	@dptr,a
;	vprintf.c:206: decimalPart=f-integerPart;
;	genCall 
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_integerPart_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___ulong2fs
	mov	r6,dpl
	mov	r0,dph
	mov	r1,dpx
	mov	r2,b
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#___fssub_PARM_2
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
	inc	dptr
	mov	a,r1
	movx	@dptr,a
	inc	dptr
	mov	a,r2
	movx	@dptr,a
;	genCall 
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_f_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fssub
	mov	r2,dpl
	mov	r3,dph
	mov	r4,dpx
	mov	r5,b
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_decimalPart_1_1
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	vprintf.c:209: while (integerPart) {
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	r6,#0x00
;	genLabel 
00112$:
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar7,r6
;	genIfx 
	mov	dptr,#_output_float_integerPart_1_1
	movx	a,@dptr
	mov	b,a
	inc	dptr
	movx	a,@dptr
	orl	b,a
	inc	dptr
	movx	a,@dptr
	orl	b,a
	inc	dptr
	movx	a,@dptr
	orl	b,a
	mov	a,b
;	genIfxJump
	jnz	00243$
	ljmp	00114$
00243$:
;	vprintf.c:210: fpBuffer[fpBI++]='0' + integerPart%10;
;	genIpush 
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar0,r6
;	genPlus 
	inc	r6
;	did genPlusIncr
;	genPlus 
	mov	a,r0
	add	a,#_output_float_fpBuffer_1_1
	mov	r0,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 8)
	mov	r1,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 16)
	mov	r2,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#__modulong_PARM_2
	mov	a,#0x0A
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	inc	dptr
	movx	@dptr,a
	inc	dptr
	movx	@dptr,a
;	genCall 
	push	ar2
	push	ar6
	push	ar0
	push	ar1
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_integerPart_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	__modulong
	pop	ar1
	pop	ar0
	pop	ar6
	pop	ar2
;	genCast 
	mov	r3,dpl
;	genPlus 
	mov	a,#0x30
	add	a,r3
;	genPointerSet 
; Peephole 136a   removed redundant moves
	mov  r3,a
	mov  dpl,r0
	mov  dph,r1
	mov  dpx,r2
	movx	@dptr,a
;	vprintf.c:211: integerPart /= 10;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#__divulong_PARM_2
	mov	a,#0x0A
	movx	@dptr,a
	clr	a
	inc	dptr
	movx	@dptr,a
	inc	dptr
	movx	@dptr,a
	inc	dptr
	movx	@dptr,a
;	genCall 
	push	ar6
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_integerPart_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	__divulong
	mov	r2,dpl
	mov	r3,dph
	mov	r4,dpx
	mov	r5,b
	pop	ar6
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_integerPart_1_1
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	genIpop 
;	genGoto 
	ljmp	00112$
;	genLabel 
00114$:
;	vprintf.c:213: if (!fpBI) {
;	genIfx 
	mov	a,r6
;	genIfxJump
; Peephole 109   removed ljmp by inverse jump logic
	jnz  00116$
00244$:
;	vprintf.c:215: fpBuffer[fpBI++]='0';
;	genPlus 
	mov	a,#0x01
	add	a,r6
	mov	r7,a
;	genPlus 
	mov	a,r6
	add	a,#_output_float_fpBuffer_1_1
	mov	dpl,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 8)
	mov	dph,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 16)
	mov	dpx,a
;	genPointerSet 
	mov	a,#0x30
	movx	@dptr,a
;	genLabel 
00116$:
;	vprintf.c:219: if (reqDecimals==-1)
;	genCmpEq 
	mov	dptr,#_output_float_PARM_3
;	gencjneshort
	movx	a,@dptr
; Peephole 132   changed ljmp to sjmp
; Peephole 199   optimized misc jump sequence
	cjne a,#0xFF,00118$
;00245$:
; Peephole 200   removed redundant sjmp
00246$:
;	vprintf.c:220: reqDecimals=DEFAULT_FLOAT_PRECISION;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_3
	mov	a,#0x06
	movx	@dptr,a
;	genLabel 
00118$:
;	vprintf.c:224: if (i=reqDecimals /* that's an assignment */) {
;	genAssign 
	mov	dptr,#_output_float_PARM_3
;	genAssign: resultIsFar = TRUE
;	genFarFarAssign (1 byte case)
	movx	a,@dptr
;	genAssign 
;	genAssign: resultIsFar = TRUE
;	genIfx 
; Peephole 166   removed redundant mov
	mov  r6,a
	mov  ar0,r6 
;	genIfxJump
	jnz	00247$
	ljmp	00123$
00247$:
;	vprintf.c:225: do {
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_sloc2_1_0
	mov	a,r7
	movx	@dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_sloc1_1_0
	mov	a,r6
	movx	@dptr,a
;	genLabel 
00119$:
;	vprintf.c:226: decimalPart *= 10.0;
;	genIpush 
	push	ar7
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#___fsmul_PARM_2
; Peephole 101   removed redundant mov
; Peephole 180   changed mov to clr
	clr  a
	movx @dptr,a
	inc  dptr
	movx @dptr,a
	inc	dptr
	mov	a,#0x20
	movx	@dptr,a
	inc	dptr
	mov	a,#0x41
	movx	@dptr,a
;	genCall 
	push	ar7
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_decimalPart_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fsmul
	mov	r2,dpl
	mov	r3,dph
	mov	r4,dpx
	mov	r5,b
	pop	ar7
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_decimalPart_1_1
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	vprintf.c:228: integerPart=decimalPart;
;	genCall 
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_decimalPart_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fs2ulong
	mov	r6,dpl
	mov	r7,dph
	mov	r1,dpx
	mov	r2,b
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_integerPart_1_1
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r1
	movx	@dptr,a
	inc	dptr
	mov	a,r2
	movx	@dptr,a
;	vprintf.c:229: fpBuffer[fpBD++]='0' + integerPart;
;	genAssign 
	mov	dptr,#_output_float_sloc2_1_0
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r2,a
;	genPlus 
	mov	dptr,#_output_float_sloc2_1_0
;	Swapped plus args.
	movx	a,@dptr
	add	a,#0x01
	movx	@dptr,a
;	genPlus 
	mov	a,r2
	add	a,#_output_float_fpBuffer_1_1
	mov	dpl1,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 8)
	mov	dph1,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 16)
	mov	dpx1,a
;	genCast 
	mov	dptr,#_output_float_integerPart_1_1
	movx	a,@dptr
;	genPlus 
; Peephole 214 reduced some extra movs
;	genPointerSet 
; Peephole 105   removed redundant mov
; Peephole 215 removed some movs
	add  a,#0x30
	mov  r5,a
	inc	dps
	movx	@dptr,a
	mov	dps,#0
;	vprintf.c:230: decimalPart-=integerPart;
;	genCall 
	push	ar7
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_integerPart_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___ulong2fs
	mov	r2,dpl
	mov	r3,dph
	mov	r4,dpx
	mov	r5,b
	pop	ar7
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#___fssub_PARM_2
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	genCall 
	push	ar7
;	genSend argreg = 1, size = 4 
	inc	dps
	mov	dptr,#_output_float_decimalPart_1_1
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	inc	dptr
	movx	a,@dptr
	mov	dpx,a
	inc	dptr
	movx	a,@dptr
	mov	b,a
	mov	dps,#0
	lcall	___fssub
	mov	r2,dpl
	mov	r3,dph
	mov	r4,dpx
	mov	r5,b
	pop	ar7
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_decimalPart_1_1
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	vprintf.c:231: } while (--i);
;	genMinus 
	mov	dptr,#_output_float_sloc1_1_0
	movx	a,@dptr
	dec	a
	movx	@dptr,a
;	genAssign 
	mov	dptr,#_output_float_sloc1_1_0
;	genAssign: resultIsFar = TRUE
;	genFarFarAssign (1 byte case)
	movx	a,@dptr
	mov	r0,a
;	genIpop 
	pop	ar7
;	genIfx 
	mov	dptr,#_output_float_sloc1_1_0
	movx	a,@dptr
;	genIfxJump
	jz	00248$
	ljmp	00119$
00248$:
;	genLabel 
00123$:
;	vprintf.c:234: minWidth=fpBI; // we need at least these
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar2,r7
;	vprintf.c:235: minWidth+=reqDecimals?reqDecimals+1:0; // maybe these
;	genIfx 
	mov	dptr,#_output_float_PARM_3
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00189$
00249$:
;	genPlus 
	mov	dptr,#_output_float_PARM_3
;	Swapped plus args.
	movx	a,@dptr
	add	a,#0x01
	mov	r3,a
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00190$
00189$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	r3,#0x00
;	genLabel 
00190$:
;	genPlus 
	mov	a,r3
	add	a,r2
	mov	r2,a
;	vprintf.c:236: if (negative || sign || space)
;	genIfx 
	mov	dptr,#_output_float_negative_1_1
	movx	a,@dptr
;	genIfxJump
; Peephole 109   removed ljmp by inverse jump logic
	jnz  00124$
00250$:
;	genIfx 
	mov	dptr,#_output_float_PARM_6
	movx	a,@dptr
;	genIfxJump
; Peephole 109   removed ljmp by inverse jump logic
	jnz  00124$
00251$:
;	genIfx 
	mov	dptr,#_output_float_PARM_7
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00125$
00252$:
;	genLabel 
00124$:
;	vprintf.c:237: minWidth++; // and maybe even this :)
;	genPlus 
	inc	r2
;	did genPlusIncr
;	genLabel 
00125$:
;	vprintf.c:239: if (!left && reqWidth>i) {
;	genIfx 
	mov	dptr,#_output_float_PARM_4
	movx	a,@dptr
;	genIfxJump
	jz	00253$
	ljmp	00162$
00253$:
;	genCmpGt 
	mov	dptr,#_output_float_PARM_2
;	genCmp
	clr	c
	mov	a,r0
	xch	a, b
	movx	a,@dptr
	xch	a, b
	subb	a,b
;	genIfxJump
	jc	00254$
	ljmp	00162$
00254$:
;	vprintf.c:240: if (zero) {
;	genIfx 
	mov	dptr,#_output_float_PARM_5
	movx	a,@dptr
;	genIfxJump
	jnz	00255$
	ljmp	00217$
00255$:
;	vprintf.c:241: if (negative) output_char('-');
;	genIfx 
	mov	dptr,#_output_float_negative_1_1
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00134$
00256$:
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2D
	lcall	_output_char
	pop	ar7
	pop	ar2
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00215$
00134$:
;	vprintf.c:242: else if (sign) output_char('+');
;	genIfx 
	mov	dptr,#_output_float_PARM_6
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00131$
00257$:
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2B
	lcall	_output_char
	pop	ar7
	pop	ar2
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00215$
00131$:
;	vprintf.c:243: else if (space) output_char(' ');
;	genIfx 
	mov	dptr,#_output_float_PARM_7
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00215$
00258$:
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar7
	pop	ar2
;	vprintf.c:244: while (reqWidth-->minWidth)
;	genLabel 
00215$:
;	genAssign 
	mov	dptr,#_output_float_PARM_2
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r3,a
;	genLabel 
00136$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar4,r3
;	genMinus 
	dec	r3
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_2
	mov	a,r3
	movx	@dptr,a
;	genCmpGt 
;	genCmp
	clr	c
	mov	a,r2
	subb	a,r4
;	genIfxJump
	jc	00259$
	ljmp	00163$
00259$:
;	vprintf.c:245: output_char ('0');
;	genCall 
	push	ar2
	push	ar3
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x30
	lcall	_output_char
	pop	ar7
	pop	ar3
	pop	ar2
;	genGoto 
;	vprintf.c:247: while (reqWidth-->minWidth)
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00136$
00217$:
;	genAssign 
	mov	dptr,#_output_float_PARM_2
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r3,a
;	genLabel 
00139$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar4,r3
;	genMinus 
	dec	r3
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_2
	mov	a,r3
	movx	@dptr,a
;	genCmpGt 
;	genCmp
	clr	c
	mov	a,r2
	subb	a,r4
;	genIfxJump
; Peephole 108   removed ljmp by inverse jump logic
	jnc  00141$
00260$:
;	vprintf.c:248: output_char (' ');
;	genCall 
	push	ar2
	push	ar3
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar7
	pop	ar3
	pop	ar2
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00139$
00141$:
;	vprintf.c:249: if (negative) output_char('-');
;	genIfx 
	mov	dptr,#_output_float_negative_1_1
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00148$
00261$:
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2D
	lcall	_output_char
	pop	ar7
	pop	ar2
;	genGoto 
	ljmp	00163$
;	genLabel 
00148$:
;	vprintf.c:250: else if (sign) output_char('+');
;	genIfx 
	mov	dptr,#_output_float_PARM_6
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00145$
00262$:
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2B
	lcall	_output_char
	pop	ar7
	pop	ar2
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00163$
00145$:
;	vprintf.c:251: else if (space) output_char (' ');
;	genIfx 
	mov	dptr,#_output_float_PARM_7
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00163$
00263$:
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar7
	pop	ar2
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00163$
00162$:
;	vprintf.c:254: if (negative) output_char('-');
;	genIfx 
	mov	dptr,#_output_float_negative_1_1
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00159$
00264$:
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2D
	lcall	_output_char
	pop	ar7
	pop	ar2
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00163$
00159$:
;	vprintf.c:255: else if (sign) output_char('+');
;	genIfx 
	mov	dptr,#_output_float_PARM_6
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00156$
00265$:
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2B
	lcall	_output_char
	pop	ar7
	pop	ar2
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00163$
00156$:
;	vprintf.c:256: else if (space) output_char(' ');
;	genIfx 
	mov	dptr,#_output_float_PARM_7
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00163$
00266$:
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar7
	pop	ar2
;	genLabel 
00163$:
;	vprintf.c:260: i=fpBI-1;
;	genMinus 
	mov	a,r7
	dec	a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r0,a
;	vprintf.c:261: do {
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar3,r0
;	genLabel 
00165$:
;	vprintf.c:262: output_char (fpBuffer[i]);
;	genPlus 
	mov	a,r3
	add	a,#_output_float_fpBuffer_1_1
	mov	dpl,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 8)
	mov	dph,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 16)
	mov	dpx,a
;	genPointerGet 
;	genFarPointerGet
	movx	a,@dptr
	mov	r4,a
;	genCall 
	push	ar2
	push	ar3
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,r4
	lcall	_output_char
	pop	ar7
	pop	ar3
	pop	ar2
;	vprintf.c:263: } while (i--);
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar4,r3
;	genMinus 
	dec	r3
;	genIfx 
	mov	a,r4
;	genIfxJump
; Peephole 109   removed ljmp by inverse jump logic
	jnz  00165$
00267$:
;	vprintf.c:266: if (reqDecimals) {
;	genIfx 
	mov	dptr,#_output_float_PARM_3
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00172$
00268$:
;	vprintf.c:267: output_char ('.');
;	genCall 
	push	ar2
	push	ar7
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2E
	lcall	_output_char
	pop	ar7
	pop	ar2
;	vprintf.c:269: while (reqDecimals--)
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar3,r7
;	genAssign 
	mov	dptr,#_output_float_PARM_3
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r4,a
;	genLabel 
00168$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar5,r4
;	genMinus 
	dec	r4
;	genIfx 
	mov	a,r5
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00172$
00269$:
;	vprintf.c:270: output_char (fpBuffer[i++]);
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar5,r3
;	genPlus 
	inc	r3
;	did genPlusIncr
;	genPlus 
	mov	a,r5
	add	a,#_output_float_fpBuffer_1_1
	mov	dpl,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 8)
	mov	dph,a
; Peephole 3.d   changed mov to clr
	clr	a
	addc	a,#(_output_float_fpBuffer_1_1 >> 16)
	mov	dpx,a
;	genPointerGet 
;	genFarPointerGet
	movx	a,@dptr
	mov	r5,a
;	genCall 
	push	ar2
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,r5
	lcall	_output_char
	pop	ar4
	pop	ar3
	pop	ar2
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00168$
00172$:
;	vprintf.c:273: if (left && reqWidth>minWidth) {
;	genIfx 
	mov	dptr,#_output_float_PARM_4
	movx	a,@dptr
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00187$
00270$:
;	genCmpGt 
	mov	dptr,#_output_float_PARM_2
;	genCmp
	clr	c
	mov	a,r2
	xch	a, b
	movx	a,@dptr
	xch	a, b
	subb	a,b
;	genIfxJump
; Peephole 108   removed ljmp by inverse jump logic
	jnc  00187$
00271$:
;	vprintf.c:274: while (reqWidth-->minWidth)
;	genAssign 
	mov	dptr,#_output_float_PARM_2
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r3,a
;	genLabel 
00173$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar4,r3
;	genMinus 
	dec	r3
;	genCmpGt 
;	genCmp
	clr	c
	mov	a,r2
	subb	a,r4
;	genIfxJump
; Peephole 108   removed ljmp by inverse jump logic
	jnc  00187$
00272$:
;	vprintf.c:275: output_char(' ');
;	genCall 
	push	ar2
	push	ar3
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar3
	pop	ar2
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00173$
00187$:
;	genEndFunction 
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'vsprintf'
;------------------------------------------------------------
;format                    Allocated with name '_vsprintf_PARM_2'
;ap                        Allocated with name '_vsprintf_PARM_3'
;buf                       Allocated to registers r2 r3 r4 r5 
;width                     Allocated to registers r3 
;decimals                  Allocated to registers r4 
;length                    Allocated to registers r5 
;c                         Allocated to registers r2 
;------------------------------------------------------------
;	vprintf.c:282: int vsprintf (const char *buf, const char *format, va_list ap)
;	genFunction 
;	-----------------------------------------
;	 function vsprintf
;	-----------------------------------------
_vsprintf:
;	genReceive 
	mov	r2,dpl
	mov	r3,dph
	mov	r4,dpx
	mov	r5,b
;	vprintf.c:299: charsOutputted=0;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_charsOutputted
	clr	a
	movx	@dptr,a
	inc	dptr
	movx	@dptr,a
;	vprintf.c:301: output_ptr = buf;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_ptr
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	vprintf.c:302: if ( !buf )
;	genIfx 
;	toBoolean: generic ptr special case.
	mov	a,r2
	orl	a,r3
	orl	a,r4
;	genIfxJump
; Peephole 109   removed ljmp by inverse jump logic
	jnz  00102$
00300$:
;	vprintf.c:304: output_to_string = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_output_to_string
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00103$
00102$:
;	vprintf.c:308: output_to_string = 1;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_output_to_string
;	genLabel 
00103$:
;	vprintf.c:312: if (format==0) {
;	genAssign 
	mov	dptr,#_vsprintf_PARM_2
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	inc	dptr
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r5,a
;	genCmpEq 
;	gencjneshort
;	cjneshort: generic ptr special case.
	mov	a,r2
; Peephole 132   changed ljmp to sjmp
; Peephole 195   optimized misc jump sequence
	cjne a,#0x00,00237$
	mov  a,r3
	cjne a,#0x00,00237$
	mov  a,r4
	cjne a,#0x00,00237$
;00301$:
; Peephole 200   removed redundant sjmp
00302$:
;	vprintf.c:313: format=NULL_STRING;
;	genCast 
	mov	dptr,#_vsprintf_PARM_2
	mov	a,#__str_0
	movx	@dptr,a
	inc	dptr
	mov	a,#(__str_0 >> 8)
	movx	@dptr,a
	inc	dptr
	mov	a,#(__str_0 >> 16)
	movx	@dptr,a
	inc	dptr
	mov	a,#0x2
	movx	@dptr,a
;	vprintf.c:317: while( c=*format++ )
;	genLabel 
00237$:
;	genLabel 
00220$:
;	genAssign 
	mov	dptr,#_vsprintf_PARM_2
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r2,a
	inc	dptr
	movx	a,@dptr
	mov	r3,a
	inc	dptr
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r5,a
;	genPointerGet 
;	genGenPointerGet 
	mov	dpl,r2
	mov	dph,r3
	mov	dpx,r4
	mov	b,r5
	lcall	__gptrget
	mov	r6,a
;	genPlus 
	mov	dptr,#_vsprintf_PARM_2
	mov	a,#0x01
	add	a,r2
	movx	@dptr,a
; Peephole 180   changed mov to clr
	clr  a
	addc	a,r3
	inc	dptr
	movx	@dptr,a
; Peephole 180   changed mov to clr
	clr  a
	addc	a,r4
	inc	dptr
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar2,r6
;	genIfx 
	mov	a,r6
;	genIfxJump
	jnz	00303$
	ljmp	00222$
00303$:
;	vprintf.c:319: if ( c=='%' )
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x25,00304$
	sjmp	00305$
00304$:
	ljmp	00218$
00305$:
;	vprintf.c:321: left_justify    = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_vsprintf_left_justify_1_1
;	vprintf.c:322: zero_padding    = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_vsprintf_zero_padding_1_1
;	vprintf.c:323: prefix_sign     = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_vsprintf_prefix_sign_1_1
;	vprintf.c:324: prefix_space    = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_vsprintf_prefix_space_1_1
;	vprintf.c:325: signed_argument = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_vsprintf_signed_argument_1_1
;	vprintf.c:326: radix           = 0;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_radix
; Peephole 180   changed mov to clr
	clr  a
	movx	@dptr,a
;	vprintf.c:327: char_argument   = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_vsprintf_char_argument_1_1
;	vprintf.c:328: long_argument   = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_vsprintf_long_argument_1_1
;	vprintf.c:329: float_argument  = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_vsprintf_float_argument_1_1
;	vprintf.c:330: width           = 0;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r3,#0x00
;	vprintf.c:331: decimals        = -1;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r4,#0xFF
;	vprintf.c:333: get_conversion_spec:
;	genAssign 
	mov	dptr,#_vsprintf_PARM_2
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r0,a
;	genLabel 
00106$:
;	vprintf.c:335: c = *format++;
;	genPointerGet 
;	genGenPointerGet 
	mov	dpl,r5
	mov	dph,r6
	mov	dpx,r7
	mov	b,r0
	lcall	__gptrget
	mov	r1,a
	inc	dptr
	mov	r5,dpl
	mov	r6,dph
	mov	r7,dpx
	mov	r0,b
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_2
	mov	a,r5
	movx	@dptr,a
	inc	dptr
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar2,r1
;	vprintf.c:337: if (c=='%') {
;	genCmpEq 
;	gencjneshort
	mov	a,r2
; Peephole 132   changed ljmp to sjmp
; Peephole 199   optimized misc jump sequence
	cjne a,#0x25,00108$
;00306$:
; Peephole 200   removed redundant sjmp
00307$:
;	vprintf.c:338: output_char(c);
;	genCall 
;	genSend argreg = 1, size = 1 
	mov	dpl,r2
	lcall	_output_char
;	vprintf.c:339: continue;
;	genGoto 
	ljmp	00220$
;	genLabel 
00108$:
;	vprintf.c:342: if (isdigit(c)) {
;	genCall 
	push	ar2
	push	ar3
	push	ar4
	push	ar5
	push	ar6
	push	ar7
	push	ar0
;	genSend argreg = 1, size = 1 
	mov	dpl,r2
	lcall	_isdigit
	pop	ar0
	pop	ar7
	pop	ar6
	pop	ar5
	pop	ar4
	pop	ar3
	pop	ar2
;	genIfx 
	mov	a,dpl
;	genIfxJump
; Peephole 132   changed ljmp to sjmp
; Peephole 162   removed sjmp by inverse jump logic
	jz   00115$
00308$:
;	vprintf.c:343: if (decimals==-1) {
;	genCmpEq 
;	gencjneshort
	mov	a,r4
; Peephole 132   changed ljmp to sjmp
; Peephole 199   optimized misc jump sequence
	cjne a,#0xFF,00112$
;00309$:
; Peephole 200   removed redundant sjmp
00310$:
;	vprintf.c:344: width = 10*width + (c - '0');
;	genIpush 
	push	ar4
;	genMult 
	mov	b,#0x0A
	mov	a,r3
	mul	ab
	mov	r1,a
;	genMinus 
	mov	a,r2
	add	a,#0xD0
;	genPlus 
; Peephole 105   removed redundant mov
	mov  r4,a
	add	a,r1
;	vprintf.c:345: if (width == 0) {
;	genCmpEq 
;	gencjne
;	gencjneshort
; Peephole 105   removed redundant mov
	mov  r3,a
	cjne	a,#0x00,00311$
	mov	a,#1
	sjmp	00312$
00311$:
	clr	a
00312$:
;	genIpop 
	pop	ar4
;	genIfx 
;	genIfxJump
	jnz	00313$
	ljmp	00106$
00313$:
;	vprintf.c:347: zero_padding = 1;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_vsprintf_zero_padding_1_1
;	genGoto 
	ljmp	00106$
;	genLabel 
00112$:
;	vprintf.c:350: decimals = 10*decimals + (c-'0');
;	genIpush 
	push	ar3
;	genMult 
	clr	F0
	mov	b,#0x0A
	mov	a,r4
	jnb	acc.7,00314$
	cpl	F0
	cpl	a
	inc	a
00314$:
	mul	ab
	jnb	F0,00315$
	cpl	a
	inc	a
00315$:
	mov	r1,a
;	genMinus 
	mov	a,r2
	add	a,#0xD0
;	genPlus 
; Peephole 105   removed redundant mov
	mov  r3,a
	add	a,r1
	mov	r4,a
;	vprintf.c:352: goto get_conversion_spec;
;	genIpop 
	pop	ar3
;	genGoto 
	ljmp	00106$
;	genLabel 
00115$:
;	vprintf.c:355: if (c=='.') {
;	genCmpEq 
;	gencjneshort
	mov	a,r2
; Peephole 132   changed ljmp to sjmp
; Peephole 199   optimized misc jump sequence
	cjne a,#0x2E,00119$
;00316$:
; Peephole 200   removed redundant sjmp
00317$:
;	vprintf.c:356: if (decimals=-1) decimals=0;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r4,#0x00
;	vprintf.c:359: goto get_conversion_spec;
;	genGoto 
	ljmp	00106$
;	genLabel 
00119$:
;	vprintf.c:362: lower_case = islower(c);
;	genCall 
	push	ar2
	push	ar3
	push	ar4
	push	ar5
	push	ar6
	push	ar7
	push	ar0
;	genSend argreg = 1, size = 1 
	mov	dpl,r2
	lcall	_islower
	pop	ar0
	pop	ar7
	pop	ar6
	pop	ar5
	pop	ar4
	pop	ar3
	pop	ar2
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	a,dpl
	add	a,#0xFF
	mov	_lower_case,c
;	vprintf.c:363: if (lower_case)
;	genIfx 
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  _lower_case,00121$
00318$:
;	vprintf.c:365: c = toupper(c);
;	genAnd 
	anl	ar2,#0xDF
;	genLabel 
00121$:
;	vprintf.c:368: switch( c )
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x20,00319$
	ljmp	00124$
00319$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x2B,00320$
; Peephole 132   changed ljmp to sjmp
	sjmp 00123$
00320$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x2D,00321$
; Peephole 132   changed ljmp to sjmp
	sjmp 00122$
00321$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x42,00322$
; Peephole 132   changed ljmp to sjmp
	sjmp 00125$
00322$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x43,00323$
; Peephole 132   changed ljmp to sjmp
	sjmp 00127$
00323$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x44,00324$
	ljmp	00148$
00324$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x46,00325$
	ljmp	00153$
00325$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x49,00326$
	ljmp	00148$
00326$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x4C,00327$
; Peephole 132   changed ljmp to sjmp
	sjmp 00126$
00327$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x4F,00328$
	ljmp	00150$
00328$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x50,00329$
	ljmp	00147$
00329$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x53,00330$
	ljmp	00128$
00330$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x55,00331$
	ljmp	00151$
00331$:
;	genCmpEq 
;	gencjneshort
	mov	a,r2
	cjne	a,#0x58,00332$
	ljmp	00152$
00332$:
;	genGoto 
	ljmp	00154$
;	vprintf.c:371: left_justify = 1;
;	genLabel 
00122$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_vsprintf_left_justify_1_1
;	vprintf.c:372: goto get_conversion_spec;
;	genGoto 
	ljmp	00106$
;	vprintf.c:374: prefix_sign = 1;
;	genLabel 
00123$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_vsprintf_prefix_sign_1_1
;	vprintf.c:375: goto get_conversion_spec;
;	genGoto 
	ljmp	00106$
;	vprintf.c:377: prefix_space = 1;
;	genLabel 
00124$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_vsprintf_prefix_space_1_1
;	vprintf.c:378: goto get_conversion_spec;
;	genGoto 
	ljmp	00106$
;	vprintf.c:380: char_argument = 1;
;	genLabel 
00125$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_vsprintf_char_argument_1_1
;	vprintf.c:381: goto get_conversion_spec;
;	genGoto 
	ljmp	00106$
;	vprintf.c:383: long_argument = 1;
;	genLabel 
00126$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_vsprintf_long_argument_1_1
;	vprintf.c:384: goto get_conversion_spec;
;	genGoto 
	ljmp	00106$
;	vprintf.c:387: output_char( va_arg(ap,int) );
;	genLabel 
00127$:
;	genAssign 
	mov	dptr,#_vsprintf_PARM_3
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r0,a
;	genMinus 
	mov	a,r5
	add	a,#0xFE
	mov	r5,a
	mov	a,r6
	addc	a,#0xFF
	mov	r6,a
	mov	a,r7
	addc	a,#0xFF
	mov	r7,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_3
	mov	a,r5
	movx	@dptr,a
	inc	dptr
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
;	genPointerGet 
;	genGenPointerGet 
	mov	dpl,r5
	mov	dph,r6
	mov	dpx,r7
	mov	b,r0
	lcall	__gptrgetWord
	mov	r5,_ap
	mov	r6,a
;	genCast 
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,r5
	lcall	_output_char
	pop	ar4
	pop	ar3
;	vprintf.c:388: break;
;	genGoto 
	ljmp	00155$
;	vprintf.c:391: PTR = va_arg(ap,ptr_t);
;	genLabel 
00128$:
;	genAssign 
	mov	dptr,#_vsprintf_PARM_3
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r5,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r0,a
;	genMinus 
	mov	a,r5
	add	a,#0xFC
	mov	r5,a
	mov	a,r6
	addc	a,#0xFF
	mov	r6,a
	mov	a,r7
	addc	a,#0xFF
	mov	r7,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_3
	mov	a,r5
	movx	@dptr,a
	inc	dptr
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
;	genPointerGet 
;	genGenPointerGet 
	mov	dpl,r5
	mov	dph,r6
	mov	dpx,r7
	mov	b,r0
	lcall	__gptrgetWord
	mov	r5,_ap
	mov	r6,a
	inc	dptr
	lcall	__gptrgetWord
	mov	r7,_ap
	mov	r0,a
;	genPointerSet 
	mov	_value,r5
	mov	(_value + 1),r6
	mov	(_value + 2),r7
	mov	(_value + 3),r0
;	vprintf.c:394: if (PTR==0) {
;	genCmpEq 
;	gencjneshort
;	cjneshort: generic ptr special case.
	mov	a,r5
; Peephole 132   changed ljmp to sjmp
; Peephole 195   optimized misc jump sequence
	cjne a,#0x0,00130$
	mov  a,r6
	cjne a,#(0x0 >> 8),00130$
	mov  a,r7
	cjne a,#(0x0 >> 16),00130$
;00333$:
; Peephole 200   removed redundant sjmp
00334$:
;	vprintf.c:395: PTR=NULL_STRING;
;	genPointerSet 
	mov	_value,#__str_0
	mov	(_value + 1),#(__str_0 >> 8)
	mov	(_value + 2),#(__str_0 >> 16)
	mov	(_value + 3),#0x02
;	vprintf.c:396: length=NULL_STRING_LENGTH;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r5,#0x06
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00131$
00130$:
;	vprintf.c:398: length = strlen(PTR);
;	genPointerGet 
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 4 
	mov	dpl,_value
	mov	dph,(_value + 1)
	mov	dpx,(_value + 2)
	mov	b,(_value + 3)
	lcall	_strlen
	mov	r6,dpl
	mov	r7,dph
	pop	ar4
	pop	ar3
;	genCast 
	mov	ar5,r6
;	genLabel 
00131$:
;	vprintf.c:403: if ( ( !left_justify ) && (length < width) )
;	genIfx 
;	genIfxJump
; Peephole 112   removed ljmp by inverse jump logic
	jb   _vsprintf_left_justify_1_1,00138$
00335$:
;	genCmpLt 
;	genCmp
	clr	c
	mov	a,r5
	subb	a,r3
;	genIfxJump
; Peephole 108   removed ljmp by inverse jump logic
	jnc  00138$
00336$:
;	vprintf.c:405: width -= length;
;	genMinus 
	clr	c
	mov	a,r3
	subb	a,r5
	mov	r3,a
;	vprintf.c:406: while( width-- != 0 )
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar6,r3
;	genLabel 
00132$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar7,r6
;	genMinus 
	dec	r6
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar3,r6
;	genCmpEq 
;	gencjneshort
	mov	a,r7
	cjne	a,#0x00,00337$
; Peephole 132   changed ljmp to sjmp
	sjmp 00138$
00337$:
;	vprintf.c:408: output_char( ' ' );
;	genCall 
	push	ar4
	push	ar5
	push	ar6
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar6
	pop	ar5
	pop	ar4
;	genGoto 
;	vprintf.c:412: while ( *PTR )
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00132$
00138$:
;	genPointerGet 
	mov	dpl,_value
	mov	dph,(_value + 1)
	mov	dpx,(_value + 2)
	mov	b,(_value + 3)
;	genPointerGet 
;	genGenPointerGet 
	lcall	__gptrget
;	genIfx 
; Peephole 105   removed redundant mov
	mov  r6,a
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00140$
00338$:
;	vprintf.c:413: output_char( *PTR++ );
;	genPointerGet 
	mov	dpl,_value
	mov	dph,(_value + 1)
	mov	dpx,(_value + 2)
	mov	b,(_value + 3)
;	genPlus 
	mov	a,#0x01
	add	a,dpl
	mov	r6,a
; Peephole 180   changed mov to clr
	clr  a
	addc	a,dph
	mov	r7,a
; Peephole 180   changed mov to clr
	clr  a
	addc	a,dpx
	mov	r0,a
	mov	r1,b
;	genPointerSet 
	mov	_value,r6
	mov	(_value + 1),r7
	mov	(_value + 2),r0
	mov	(_value + 3),r1
;	genPointerGet 
;	genGenPointerGet 
	lcall	__gptrget
	mov	r6,a
;	genCall 
	push	ar3
	push	ar4
	push	ar5
;	genSend argreg = 1, size = 1 
	mov	dpl,r6
	lcall	_output_char
	pop	ar5
	pop	ar4
	pop	ar3
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00138$
00140$:
;	vprintf.c:415: if ( left_justify && (length < width))
;	genIfx 
;	genIfxJump
	jb	_vsprintf_left_justify_1_1,00339$
	ljmp	00155$
00339$:
;	genCmpLt 
;	genCmp
	clr	c
	mov	a,r5
	subb	a,r3
;	genIfxJump
	jc	00340$
	ljmp	00155$
00340$:
;	vprintf.c:417: width -= length;
;	genMinus 
	clr	c
	mov	a,r3
	subb	a,r5
	mov	r3,a
;	vprintf.c:418: while( width-- != 0 )
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar6,r3
;	genLabel 
00141$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar7,r6
;	genMinus 
	dec	r6
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar3,r6
;	genCmpEq 
;	gencjneshort
	mov	a,r7
	cjne	a,#0x00,00341$
	ljmp	00155$
00341$:
;	vprintf.c:420: output_char( ' ' );
;	genCall 
	push	ar4
	push	ar6
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar6
	pop	ar4
;	genGoto 
;	vprintf.c:426: PTR = va_arg(ap,ptr_t);
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00141$
00147$:
;	genAssign 
	mov	dptr,#_vsprintf_PARM_3
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r0,a
	inc	dptr
	movx	a,@dptr
	mov	r1,a
;	genMinus 
	mov	a,r6
	add	a,#0xFC
	mov	r6,a
	mov	a,r7
	addc	a,#0xFF
	mov	r7,a
	mov	a,r0
	addc	a,#0xFF
	mov	r0,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_3
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
	inc	dptr
	mov	a,r1
	movx	@dptr,a
;	genPointerGet 
;	genGenPointerGet 
	mov	dpl,r6
	mov	dph,r7
	mov	dpx,r0
	mov	b,r1
	lcall	__gptrgetWord
	mov	r6,_ap
	mov	r7,a
	inc	dptr
	lcall	__gptrgetWord
	mov	r0,_ap
	mov	r1,a
;	genPointerSet 
	mov	_value,r6
	mov	(_value + 1),r7
	mov	(_value + 2),r0
	mov	(_value + 3),r1
;	vprintf.c:429: output_char(memory_id[(value.byte[3] > 3) ? 4 : value.byte[3]] );
;	genPointerGet 
; Peephole 221a remove redundant move
;	genCmpGt 
;	genCmp
	clr	c
	mov	a,#0x03
	subb	a,0x0003 + _value
;	genIfxJump
; Peephole 108   removed ljmp by inverse jump logic
	jnc  00228$
00342$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	r6,#0x04
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00229$
00228$:
;	genPointerGet 
	mov	r6,(_value + 0x0003)
;	genLabel 
00229$:
;	genPlus 
	mov	a,r6
; Peephole 3.d   changed mov to clr
; Peephole 3.d   changed mov to clr
;	genPointerGet 
; Peephole 227.a movc optimize
	mov	dptr,#_memory_id
	movc	a,@a+dptr
	mov	r6,a
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,r6
	lcall	_output_char
	pop	ar4
	pop	ar3
;	vprintf.c:430: output_char(':');
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x3A
	lcall	_output_char
	pop	ar4
	pop	ar3
;	vprintf.c:431: output_char('0');
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x30
	lcall	_output_char
	pop	ar4
	pop	ar3
;	vprintf.c:432: output_char('x');
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x78
	lcall	_output_char
	pop	ar4
	pop	ar3
;	vprintf.c:433: output_2digits(value.byte[2]);
;	genPointerGet 
; Peephole 221a remove redundant move
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,0x0002 + _value
	lcall	_output_2digits
	pop	ar4
	pop	ar3
;	vprintf.c:434: output_2digits(value.byte[1]);
;	genPointerGet 
; Peephole 221a remove redundant move
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,0x0001 + _value
	lcall	_output_2digits
	pop	ar4
	pop	ar3
;	vprintf.c:435: output_2digits(value.byte[0]);
;	genPointerGet 
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,_value
	lcall	_output_2digits
	pop	ar4
	pop	ar3
;	vprintf.c:446: break;
;	genGoto 
;	vprintf.c:450: signed_argument = 1;
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00155$
00148$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_vsprintf_signed_argument_1_1
;	vprintf.c:451: radix = 10;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_radix
	mov	a,#0x0A
	movx	@dptr,a
;	vprintf.c:452: break;
;	genGoto 
;	vprintf.c:455: radix = 8;
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00155$
00150$:
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_radix
	mov	a,#0x08
	movx	@dptr,a
;	vprintf.c:456: break;
;	genGoto 
;	vprintf.c:459: radix = 10;
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00155$
00151$:
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_radix
	mov	a,#0x0A
	movx	@dptr,a
;	vprintf.c:460: break;
;	genGoto 
;	vprintf.c:463: radix = 16;
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00155$
00152$:
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_radix
	mov	a,#0x10
	movx	@dptr,a
;	vprintf.c:464: break;
;	genGoto 
;	vprintf.c:467: float_argument=1;
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00155$
00153$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_vsprintf_float_argument_1_1
;	vprintf.c:468: break;
;	genGoto 
;	vprintf.c:472: output_char( c );
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00155$
00154$:
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,r2
	lcall	_output_char
	pop	ar4
	pop	ar3
;	vprintf.c:474: }
;	genLabel 
00155$:
;	vprintf.c:476: if (float_argument) {
;	genIfx 
;	genIfxJump
	jb	_vsprintf_float_argument_1_1,00343$
	ljmp	00215$
00343$:
;	vprintf.c:477: value.f=va_arg(ap,float);
;	genAssign 
	mov	dptr,#_vsprintf_PARM_3
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r0,a
	inc	dptr
	movx	a,@dptr
	mov	r1,a
;	genMinus 
	mov	a,r6
	add	a,#0xFC
	mov	r6,a
	mov	a,r7
	addc	a,#0xFF
	mov	r7,a
	mov	a,r0
	addc	a,#0xFF
	mov	r0,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_3
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
	inc	dptr
	mov	a,r1
	movx	@dptr,a
;	genPointerGet 
;	genGenPointerGet 
	mov	dpl,r6
	mov	dph,r7
	mov	dpx,r0
	mov	b,r1
	lcall	__gptrgetWord
	mov	r6,_ap
	mov	r7,a
	inc	dptr
	lcall	__gptrgetWord
	mov	r0,_ap
	mov	r1,a
;	genPointerSet 
	mov	_value,r6
	mov	(_value + 1),r7
	mov	(_value + 2),r0
	mov	(_value + 3),r1
;	vprintf.c:490: prefix_sign, prefix_space);
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_2
	mov	a,r3
	movx	@dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_3
	mov	a,r4
	movx	@dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_4
	clr	a
	mov	c,_vsprintf_left_justify_1_1
	rlc	a
	movx	@dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_5
	clr	a
	mov	c,_vsprintf_zero_padding_1_1
	rlc	a
	movx	@dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_6
	clr	a
	mov	c,_vsprintf_prefix_sign_1_1
	rlc	a
	movx	@dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_output_float_PARM_7
	clr	a
	mov	c,_vsprintf_prefix_space_1_1
	rlc	a
	movx	@dptr,a
;	genCall 
;	genSend argreg = 1, size = 4 
	mov	dpl,r6
	mov	dph,r7
	mov	dpx,r0
	mov	b,r1
	lcall	_output_float
;	genGoto 
	ljmp	00220$
;	genLabel 
00215$:
;	vprintf.c:492: } else if (radix != 0)
;	genCmpEq 
	mov	dptr,#_radix
;	gencjneshort
	movx	a,@dptr
	cjne	a,#0x00,00344$
	ljmp	00220$
00344$:
;	vprintf.c:498: if (char_argument)
;	genIfx 
;	genIfxJump
	jb	_vsprintf_char_argument_1_1,00345$
	ljmp	00164$
00345$:
;	vprintf.c:500: value.l = va_arg(ap,char);
;	genAssign 
	mov	dptr,#_vsprintf_PARM_3
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r0,a
;	genMinus 
	dec	r4
	cjne	r4,#0xFF,00346$
	dec	r6
	cjne	r6,#0xFF,00346$
	dec	r7
00346$:
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_3
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
;	genPointerGet 
;	genGenPointerGet 
	mov	dpl,r4
	mov	dph,r6
	mov	dpx,r7
	mov	b,r0
	lcall	__gptrget
;	genCast 
; Peephole 105   removed redundant mov
	mov  r4,a
	rlc	a
	subb	a,acc
	mov	r6,a
	mov	r7,a
	mov	r0,a
;	genPointerSet 
	mov	_value,r4
	mov	(_value + 1),r6
	mov	(_value + 2),r7
	mov	(_value + 3),r0
;	vprintf.c:501: if (!signed_argument)
;	genIfx 
;	genIfxJump
	jnb	_vsprintf_signed_argument_1_1,00347$
	ljmp	00165$
00347$:
;	vprintf.c:503: value.byte[1] = 0x00;
;	genPointerSet 
	mov	(_value + 0x0001),#0x00
;	vprintf.c:504: value.byte[2] = 0x00;
;	genPointerSet 
	mov	(_value + 0x0002),#0x00
;	vprintf.c:505: value.byte[3] = 0x00;
;	genPointerSet 
	mov	(_value + 0x0003),#0x00
;	genGoto 
	ljmp	00165$
;	genLabel 
00164$:
;	vprintf.c:508: else if (long_argument)
;	genIfx 
;	genIfxJump
	jb	_vsprintf_long_argument_1_1,00348$
	ljmp	00161$
00348$:
;	vprintf.c:510: value.l = va_arg(ap,long);
;	genAssign 
	mov	dptr,#_vsprintf_PARM_3
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r0,a
;	genMinus 
	mov	a,r4
	add	a,#0xFC
	mov	r4,a
	mov	a,r6
	addc	a,#0xFF
	mov	r6,a
	mov	a,r7
	addc	a,#0xFF
	mov	r7,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_3
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
;	genPointerGet 
;	genGenPointerGet 
	mov	dpl,r4
	mov	dph,r6
	mov	dpx,r7
	mov	b,r0
	lcall	__gptrgetWord
	mov	r4,_ap
	mov	r6,a
	inc	dptr
	lcall	__gptrgetWord
	mov	r7,_ap
	mov	r0,a
;	genPointerSet 
	mov	_value,r4
	mov	(_value + 1),r6
	mov	(_value + 2),r7
	mov	(_value + 3),r0
;	genGoto 
	ljmp	00165$
;	genLabel 
00161$:
;	vprintf.c:514: value.l = va_arg(ap,int);
;	genAssign 
	mov	dptr,#_vsprintf_PARM_3
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r4,a
	inc	dptr
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r0,a
;	genMinus 
	mov	a,r4
	add	a,#0xFE
	mov	r4,a
	mov	a,r6
	addc	a,#0xFF
	mov	r6,a
	mov	a,r7
	addc	a,#0xFF
	mov	r7,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_3
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
;	genPointerGet 
;	genGenPointerGet 
	mov	dpl,r4
	mov	dph,r6
	mov	dpx,r7
	mov	b,r0
	lcall	__gptrgetWord
	mov	r4,_ap
;	genCast 
; Peephole 105   removed redundant mov
	mov  r6,a
	rlc	a
	subb	a,acc
	mov	r7,a
	mov	r0,a
;	genPointerSet 
	mov	_value,r4
	mov	(_value + 1),r6
	mov	(_value + 2),r7
	mov	(_value + 3),r0
;	vprintf.c:515: if (!signed_argument)
;	genIfx 
;	genIfxJump
; Peephole 112   removed ljmp by inverse jump logic
	jb   _vsprintf_signed_argument_1_1,00165$
00349$:
;	vprintf.c:517: value.byte[2] = 0x00;
;	genPointerSet 
	mov	(_value + 0x0002),#0x00
;	vprintf.c:518: value.byte[3] = 0x00;
;	genPointerSet 
	mov	(_value + 0x0003),#0x00
;	genLabel 
00165$:
;	vprintf.c:522: if ( signed_argument )
;	genIfx 
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  _vsprintf_signed_argument_1_1,00170$
00350$:
;	vprintf.c:524: if (value.l < 0)
;	genPointerGet 
;	genCmpLt 
;	genCmp
	mov	a,(_value + 3)
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  acc.7,00167$
00351$:
;	vprintf.c:525: value.l = -value.l;
;	genUminus 
	clr	c
	clr	a
	subb	a,_value
	mov	r4,a
	clr	a
	subb	a,(_value + 1)
	mov	r6,a
	clr	a
	subb	a,(_value + 2)
	mov	r7,a
	clr	a
	subb	a,(_value + 3)
	mov	r0,a
;	genPointerSet 
	mov	_value,r4
	mov	(_value + 1),r6
	mov	(_value + 2),r7
	mov	(_value + 3),r0
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00170$
00167$:
;	vprintf.c:527: signed_argument = 0;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	clr	_vsprintf_signed_argument_1_1
;	genLabel 
00170$:
;	vprintf.c:531: lsd = 1;
;	genAssign 
;	genAssign: resultIsFar = FALSE
	setb	_lsd
;	vprintf.c:533: do {
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	r4,#0x00
;	genLabel 
00174$:
;	vprintf.c:534: value.byte[4] = 0;
;	genPointerSet 
	mov	(_value + 0x0004),#0x00
;	vprintf.c:535: calculate_digit();
;	genCall 
	push	ar3
	push	ar4
	lcall	_calculate_digit
	pop	ar4
	pop	ar3
;	vprintf.c:549: _endasm;
;	genInline 
	  jb _lsd,1$
	  pop b ; b = <lsd>
	  mov a,_value+4 ; a = <msd>
	  swap a
	  orl b,a ; b = <msd><lsd>
	  push b
	  sjmp 2$
1$:
	  mov a,_value+4 ; a = <lsd>
	  push acc
2$:
;	vprintf.c:551: length++;
;	genPlus 
	inc	r4
;	did genPlusIncr
;	vprintf.c:552: lsd = ~lsd;
;	genCpl 
; Peephole 167   removed redundant bit moves (c not set to _lsd)
	cpl  _lsd 
;	vprintf.c:553: } while( (value.byte[0] != 0) || (value.byte[1] != 0) ||
;	genPointerGet 
;	genCmpEq 
;	gencjneshort
	mov	a,_value
; Peephole 162   removed sjmp by inverse jump logic
	jz   00353$
00352$:
; Peephole 132   changed ljmp to sjmp
	sjmp 00174$
00353$:
;	genPointerGet 
; Peephole 221a remove redundant move
;	genCmpEq 
;	gencjneshort
	mov	a,0x0001 + _value
; Peephole 162   removed sjmp by inverse jump logic
	jz   00355$
00354$:
; Peephole 132   changed ljmp to sjmp
	sjmp 00174$
00355$:
;	vprintf.c:554: (value.byte[2] != 0) || (value.byte[3] != 0) );
;	genPointerGet 
; Peephole 221a remove redundant move
;	genCmpEq 
;	gencjneshort
	mov	a,0x0002 + _value
; Peephole 162   removed sjmp by inverse jump logic
	jz   00357$
00356$:
; Peephole 132   changed ljmp to sjmp
	sjmp 00174$
00357$:
;	genPointerGet 
; Peephole 221a remove redundant move
;	genCmpEq 
;	gencjne
;	gencjneshort
	mov	a,0x0003 + _value
	jnz	00358$
	mov	a,#1
	sjmp	00359$
00358$:
	clr	a
00359$:
	mov	r6,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar5,r4
;	genIfx 
	mov	a,r6
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00174$
00360$:
;	vprintf.c:556: if (width == 0)
;	genCmpEq 
;	gencjneshort
	mov	a,r3
; Peephole 132   changed ljmp to sjmp
; Peephole 199   optimized misc jump sequence
	cjne a,#0x00,00178$
;00361$:
; Peephole 200   removed redundant sjmp
00362$:
;	vprintf.c:561: width=1;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r3,#0x01
;	genLabel 
00178$:
;	vprintf.c:565: if (!zero_padding && !left_justify)
;	genIfx 
;	genIfxJump
; Peephole 112   removed ljmp by inverse jump logic
	jb   _vsprintf_zero_padding_1_1,00183$
00363$:
;	genIfx 
;	genIfxJump
; Peephole 112   removed ljmp by inverse jump logic
	jb   _vsprintf_left_justify_1_1,00183$
00364$:
;	vprintf.c:567: while ( width > length+1 )
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar4,r3
;	genLabel 
00179$:
;	genCast 
	mov	ar6,r5
	mov	r7,#0
;	genPlus 
	inc	r6
	cjne	r6,#0,00365$
	inc	r7
00365$:
;	did genPlusIncr
;	genCast 
	mov	ar0,r4
	mov	r1,#0
;	genCmpGt 
;	genCmp
	clr	c
	mov	a,r6
	subb	a,r0
	mov	a,r7
	xrl	a,#0x80
	mov	b,r1
	xrl	b,#0x80
	subb	a,b
	clr	a
	rlc	a
	mov	r6,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar3,r4
;	genIfx 
	mov	a,r6
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00183$
00366$:
;	vprintf.c:569: output_char( ' ' );
;	genCall 
	push	ar4
	push	ar5
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar5
	pop	ar4
;	vprintf.c:570: width--;
;	genMinus 
	dec	r4
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00179$
00183$:
;	vprintf.c:574: if (signed_argument) // this now means the original value was negative
;	genIfx 
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  _vsprintf_signed_argument_1_1,00193$
00367$:
;	vprintf.c:576: output_char( '-' );
;	genCall 
	push	ar3
	push	ar5
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2D
	lcall	_output_char
	pop	ar5
	pop	ar3
;	vprintf.c:578: width--;
;	genMinus 
	mov	a,r3
	dec	a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r3,a
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00194$
00193$:
;	vprintf.c:580: else if (length != 0)
;	genCmpEq 
;	gencjneshort
	mov	a,r5
	cjne	a,#0x00,00368$
; Peephole 132   changed ljmp to sjmp
	sjmp 00194$
00368$:
;	vprintf.c:583: if (prefix_sign)
;	genIfx 
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  _vsprintf_prefix_sign_1_1,00188$
00369$:
;	vprintf.c:585: output_char( '+' );
;	genCall 
	push	ar3
	push	ar5
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x2B
	lcall	_output_char
	pop	ar5
	pop	ar3
;	vprintf.c:587: width--;
;	genMinus 
	mov	a,r3
	dec	a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r3,a
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00194$
00188$:
;	vprintf.c:589: else if (prefix_space)
;	genIfx 
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  _vsprintf_prefix_space_1_1,00194$
00370$:
;	vprintf.c:591: output_char( ' ' );
;	genCall 
	push	ar3
	push	ar5
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar5
	pop	ar3
;	vprintf.c:593: width--;
;	genMinus 
	mov	a,r3
	dec	a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r3,a
;	genLabel 
00194$:
;	vprintf.c:598: if (!left_justify)
;	genIfx 
;	genIfxJump
; Peephole 112   removed ljmp by inverse jump logic
	jb   _vsprintf_left_justify_1_1,00202$
00371$:
;	vprintf.c:599: while ( width-- > length )
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar4,r3
;	genLabel 
00195$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar6,r4
;	genMinus 
	dec	r4
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	ar3,r4
;	genCmpGt 
;	genCmp
	clr	c
	mov	a,r5
	subb	a,r6
;	genIfxJump
; Peephole 108   removed ljmp by inverse jump logic
	jnc  00296$
00372$:
;	vprintf.c:601: output_char( zero_padding ? '0' : ' ' );
;	genIfx 
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  _vsprintf_zero_padding_1_1,00230$
00373$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	r6,#0x30
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00231$
00230$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	r6,#0x20
;	genLabel 
00231$:
;	genCall 
	push	ar4
	push	ar5
;	genSend argreg = 1, size = 1 
	mov	dpl,r6
	lcall	_output_char
	pop	ar5
	pop	ar4
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00195$
00202$:
;	vprintf.c:606: if (width > length)
;	genCmpGt 
;	genCmp
	clr	c
	mov	a,r5
	subb	a,r3
;	genIfxJump
; Peephole 108   removed ljmp by inverse jump logic
	jnc  00199$
00374$:
;	vprintf.c:607: width -= length;
;	genMinus 
	clr	c
	mov	a,r3
	subb	a,r5
	mov	r3,a
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00296$
00199$:
;	vprintf.c:609: width = 0;
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	r3,#0x00
;	vprintf.c:613: while( length-- )
;	genLabel 
00296$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar4,r5
;	genLabel 
00204$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar5,r4
;	genMinus 
	dec	r4
;	genIfx 
	mov	a,r5
;	genIfxJump
; Peephole 110   removed ljmp by inverse jump logic
	jz  00206$
00375$:
;	vprintf.c:615: lsd = ~lsd;
;	genCpl 
; Peephole 167   removed redundant bit moves (c not set to _lsd)
	cpl  _lsd 
;	vprintf.c:630: _endasm;
;	genInline 
	  jb _lsd,3$
	  pop acc ; a = <msd><lsd>
	  nop ; to disable the "optimizer"
	  push acc
	  swap a
	  anl a,#0x0F ; a = <msd>
	  sjmp 4$
3$:
	  pop acc
	  anl a,#0x0F ; a = <lsd>
4$:
	  mov _value+4,a
;	vprintf.c:632: output_digit( value.byte[4] );
;	genPointerGet 
; Peephole 221a remove redundant move
;	genCall 
	push	ar3
	push	ar4
;	genSend argreg = 1, size = 1 
	mov	dpl,0x0004 + _value
	lcall	_output_digit
	pop	ar4
	pop	ar3
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00204$
00206$:
;	vprintf.c:634: if (left_justify)
;	genIfx 
;	genIfxJump
	jb	_vsprintf_left_justify_1_1,00376$
	ljmp	00220$
00376$:
;	vprintf.c:635: while (width-- > 0)
;	genAssign 
;	genAssign: resultIsFar = FALSE
;	genLabel 
00207$:
;	genAssign 
;	genAssign: resultIsFar = FALSE
	mov	ar4,r3
;	genMinus 
	dec	r3
;	genCmpGt 
;	genCmp
	clr	c
; Peephole 180   changed mov to clr
	clr  a
	subb	a,r4
;	genIfxJump
	jc	00377$
	ljmp	00220$
00377$:
;	vprintf.c:636: output_char(' ');
;	genCall 
	push	ar3
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x20
	lcall	_output_char
	pop	ar3
;	genGoto 
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00207$
00218$:
;	vprintf.c:642: output_char( c );
;	genCall 
;	genSend argreg = 1, size = 1 
	mov	dpl,r2
	lcall	_output_char
;	genGoto 
	ljmp	00220$
;	genLabel 
00222$:
;	vprintf.c:648: if (output_to_string) {
;	genIfx 
;	genIfxJump
; Peephole 111   removed ljmp by inverse jump logic
	jnb  _output_to_string,00224$
00378$:
;	vprintf.c:649: output_char(0);
;	genCall 
;	genSend argreg = 1, size = 1 
	mov	dpl,#0x00
	lcall	_output_char
;	vprintf.c:650: return charsOutputted-1;
;	genMinus 
	mov	dptr,#_charsOutputted
	movx	a,@dptr
	add	a,#0xFF
	mov	dpl1,a
	inc	dptr
	movx	a,@dptr
	addc	a,#0xFF
	mov	dph1,a
;	genRet 
	mov	dpl,dpl1
	mov	dph,dph1
;	genLabel 
; Peephole 132   changed ljmp to sjmp
	sjmp 00226$
00224$:
;	vprintf.c:652: return charsOutputted;
;	genRet 
	mov     dps, #1
	mov     dptr, #_charsOutputted
	movx	a,@dptr
	mov	dpl,a
	inc	dptr
	movx	a,@dptr
	mov	dph,a
	mov	dps,#0
;	genLabel 
00226$:
;	genEndFunction 
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'vprintf'
;------------------------------------------------------------
;ap                        Allocated with name '_vprintf_PARM_2'
;format                    Allocated to registers r2 r3 r4 r5 
;------------------------------------------------------------
;	vprintf.c:658: int vprintf (const char *format, va_list ap)
;	genFunction 
;	-----------------------------------------
;	 function vprintf
;	-----------------------------------------
_vprintf:
;	genReceive 
	mov	r2,dpl
	mov	r3,dph
	mov	r4,dpx
	mov	r5,b
;	vprintf.c:660: return vsprintf( 0, format, ap );
;	genAssign 
	mov	dptr,#_vprintf_PARM_2
;	genAssign: resultIsFar = FALSE
	movx	a,@dptr
	mov	r6,a
	inc	dptr
	movx	a,@dptr
	mov	r7,a
	inc	dptr
	movx	a,@dptr
	mov	r0,a
	inc	dptr
	movx	a,@dptr
	mov	r1,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_2
	mov	a,r2
	movx	@dptr,a
	inc	dptr
	mov	a,r3
	movx	@dptr,a
	inc	dptr
	mov	a,r4
	movx	@dptr,a
	inc	dptr
	mov	a,r5
	movx	@dptr,a
;	genAssign 
;	genAssign: resultIsFar = TRUE
	mov	dptr,#_vsprintf_PARM_3
	mov	a,r6
	movx	@dptr,a
	inc	dptr
	mov	a,r7
	movx	@dptr,a
	inc	dptr
	mov	a,r0
	movx	@dptr,a
	inc	dptr
	mov	a,r1
	movx	@dptr,a
;	genCall 
;	genSend argreg = 1, size = 4 
; Peephole 181a   used 24 bit load of dptr
	mov  dptr,#0x0000
	mov	b,#0x00
	lcall	_vsprintf
;	genRet 
;	genLabel 
00101$:
;	genEndFunction 
	ret
	.area CSEG    (CODE)
_memory_id:
	.ascii "IXCP-"
	.db 0x00
__str_0:
	.ascii "<NULL>"
	.db 0x00
	.area XINIT   (CODE)
