;--------------------------------------------------------
; File Created by SDCC : free open source ANSI-C Compiler
; Version 2.8.0 #5117 (Apr  6 2017) (UNIX)
; This file was generated Thu Apr  6 21:02:46 2017
;--------------------------------------------------------
	.module printf_large
	.optsdcc -mmcs51 --model-medium
	
;--------------------------------------------------------
; Public variables in this module
;--------------------------------------------------------
	.globl __print_format_PARM_4
	.globl __print_format_PARM_3
	.globl __print_format_PARM_2
	.globl __print_format
;--------------------------------------------------------
; special function registers
;--------------------------------------------------------
	.area RSEG    (DATA)
;--------------------------------------------------------
; special function bits
;--------------------------------------------------------
	.area RSEG    (DATA)
;--------------------------------------------------------
; overlayable register banks
;--------------------------------------------------------
	.area REG_BANK_0	(REL,OVR,DATA)
	.ds 8
;--------------------------------------------------------
; internal ram data
;--------------------------------------------------------
	.area DSEG    (DATA)
__print_format_sloc0_1_0:
	.ds 4
__print_format_sloc1_1_0:
	.ds 4
;--------------------------------------------------------
; overlayable items in internal ram 
;--------------------------------------------------------
	.area	OSEG    (OVR,DATA)
_calculate_digit_ul_1_1::
	.ds 4
;--------------------------------------------------------
; indirectly addressable internal ram data
;--------------------------------------------------------
	.area ISEG    (DATA)
;--------------------------------------------------------
; absolute internal ram data
;--------------------------------------------------------
	.area IABS    (ABS,DATA)
	.area IABS    (ABS,DATA)
;--------------------------------------------------------
; bit data
;--------------------------------------------------------
	.area BSEG    (BIT)
_lower_case:
	.ds 1
__print_format_left_justify_1_1:
	.ds 1
__print_format_zero_padding_1_1:
	.ds 1
__print_format_prefix_sign_1_1:
	.ds 1
__print_format_prefix_space_1_1:
	.ds 1
__print_format_signed_argument_1_1:
	.ds 1
__print_format_char_argument_1_1:
	.ds 1
__print_format_long_argument_1_1:
	.ds 1
__print_format_float_argument_1_1:
	.ds 1
__print_format_lsd_1_1:
	.ds 1
;--------------------------------------------------------
; paged external ram data
;--------------------------------------------------------
	.area PSEG    (PAG,XDATA)
_output_char:
	.ds 2
_p:
	.ds 3
_value:
	.ds 5
_charsOutputted:
	.ds 2
__print_format_PARM_2:
	.ds 3
__print_format_PARM_3:
	.ds 3
__print_format_PARM_4:
	.ds 1
__print_format_radix_1_1:
	.ds 1
__print_format_width_1_1:
	.ds 1
__print_format_store_4_22:
	.ds 6
;--------------------------------------------------------
; external ram data
;--------------------------------------------------------
	.area XSEG    (XDATA)
;--------------------------------------------------------
; absolute external ram data
;--------------------------------------------------------
	.area XABS    (ABS,XDATA)
;--------------------------------------------------------
; external initialized ram data
;--------------------------------------------------------
	.area XISEG   (XDATA)
	.area HOME    (CODE)
	.area GSINIT0 (CODE)
	.area GSINIT1 (CODE)
	.area GSINIT2 (CODE)
	.area GSINIT3 (CODE)
	.area GSINIT4 (CODE)
	.area GSINIT5 (CODE)
	.area GSINIT  (CODE)
	.area GSFINAL (CODE)
	.area CSEG    (CODE)
;--------------------------------------------------------
; global & static initialisations
;--------------------------------------------------------
	.area HOME    (CODE)
	.area GSINIT  (CODE)
	.area GSFINAL (CODE)
	.area GSINIT  (CODE)
;--------------------------------------------------------
; Home
;--------------------------------------------------------
	.area HOME    (CODE)
	.area HOME    (CODE)
;--------------------------------------------------------
; code
;--------------------------------------------------------
	.area CSEG    (CODE)
;------------------------------------------------------------
;Allocation info for local variables in function '_output_char'
;------------------------------------------------------------
;------------------------------------------------------------
;	printf_large.c:100: static void _output_char( unsigned char c )
;	-----------------------------------------
;	 function _output_char
;	-----------------------------------------
__output_char:
	ar2 = 0x02
	ar3 = 0x03
	ar4 = 0x04
	ar5 = 0x05
	ar6 = 0x06
	ar7 = 0x07
	ar0 = 0x00
	ar1 = 0x01
	mov	r2,dpl
;	printf_large.c:102: output_char( c, p );
	mov	r0,#_p
	movx	a,@r0
	push	acc
	inc	r0
	movx	a,@r0
	push	acc
	inc	r0
	movx	a,@r0
	push	acc
	mov	a,#00103$
	push	acc
	mov	a,#(00103$ >> 8)
	push	acc
	mov	r0,#_output_char
	movx	a,@r0
	push	acc
	inc	r0
	movx	a,@r0
	push	acc
	mov	dpl,r2
	ret
00103$:
	dec	sp
	dec	sp
	dec	sp
;	printf_large.c:103: charsOutputted++;
	mov	r0,#_charsOutputted
	movx	a,@r0
	add	a,#0x01
	movx	@r0,a
	inc	r0
	movx	a,@r0
	addc	a,#0x00
	movx	@r0,a
	ret
;------------------------------------------------------------
;Allocation info for local variables in function 'output_digit'
;------------------------------------------------------------
;c                         Allocated to registers r2 
;------------------------------------------------------------
;	printf_large.c:123: static void output_digit( unsigned char n )
;	-----------------------------------------
;	 function output_digit
;	-----------------------------------------
_output_digit:
	mov	r2,dpl
;	printf_large.c:125: register unsigned char c = n + (unsigned char)'0';
	mov	a,#0x30
	add	a,r2
;	printf_large.c:127: if (c > (unsigned char)'9')
	mov  r2,a
	add	a,#0xff - 0x39
	jnc	00104$
;	printf_large.c:129: c += (unsigned char)('A' - '0' - 10);
	mov	a,#0x07
	add	a,r2
	mov	r2,a
;	printf_large.c:130: if (lower_case)
	jnb	_lower_case,00104$
;	printf_large.c:131: c = tolower(c);
	orl	ar2,#0x20
00104$:
;	printf_large.c:133: _output_char( c );
	mov	dpl,r2
	ljmp	__output_char
;------------------------------------------------------------
;Allocation info for local variables in function 'output_2digits'
;------------------------------------------------------------
;------------------------------------------------------------
;	printf_large.c:148: static void output_2digits( unsigned char b )
;	-----------------------------------------
;	 function output_2digits
;	-----------------------------------------
_output_2digits:
;	printf_large.c:150: output_digit( b>>4   );
	mov	a,dpl
	mov	r2,a
	swap	a
	anl	a,#0x0f
	mov	dpl,a
	push	ar2
	lcall	_output_digit
	pop	ar2
;	printf_large.c:151: output_digit( b&0x0F );
	anl	ar2,#0x0F
	mov	dpl,r2
	ljmp	_output_digit
;------------------------------------------------------------
;Allocation info for local variables in function 'calculate_digit'
;------------------------------------------------------------
;ul                        Allocated with name '_calculate_digit_ul_1_1'
;b4                        Allocated to registers r7 
;i                         Allocated to registers r3 
;------------------------------------------------------------
;	printf_large.c:178: static void calculate_digit( unsigned char radix )
;	-----------------------------------------
;	 function calculate_digit
;	-----------------------------------------
_calculate_digit:
	mov	r2,dpl
;	printf_large.c:180: register unsigned long ul = value.ul;
	mov	r0,#_value
	movx	a,@r0
	mov	_calculate_digit_ul_1_1,a
	inc	r0
	movx	a,@r0
	mov	(_calculate_digit_ul_1_1 + 1),a
	inc	r0
	movx	a,@r0
	mov	(_calculate_digit_ul_1_1 + 2),a
	inc	r0
	movx	a,@r0
	mov	(_calculate_digit_ul_1_1 + 3),a
;	printf_large.c:181: register unsigned char b4 = value.byte[4];
	mov	r0,#(_value + 0x0004)
	movx	a,@r0
	mov	r7,a
;	printf_large.c:184: do
	mov	r3,#0x20
00103$:
;	printf_large.c:186: b4 = (b4 << 1);
	mov	a,r7
	add	a,r7
	mov	r7,a
;	printf_large.c:187: b4 |= (ul >> 31) & 0x01;
	mov	a,(_calculate_digit_ul_1_1 + 3)
	rl	a
	anl	a,#0x01
	mov	r4,a
	orl	ar7,a
;	printf_large.c:188: ul <<= 1;
	mov	a,_calculate_digit_ul_1_1
	add	a,_calculate_digit_ul_1_1
	mov	_calculate_digit_ul_1_1,a
	mov	a,(_calculate_digit_ul_1_1 + 1)
	rlc	a
	mov	(_calculate_digit_ul_1_1 + 1),a
	mov	a,(_calculate_digit_ul_1_1 + 2)
	rlc	a
	mov	(_calculate_digit_ul_1_1 + 2),a
	mov	a,(_calculate_digit_ul_1_1 + 3)
	rlc	a
	mov	(_calculate_digit_ul_1_1 + 3),a
;	printf_large.c:190: if (radix <= b4 )
	clr	c
	mov	a,r7
	subb	a,r2
	jc	00104$
;	printf_large.c:192: b4 -= radix;
	mov	a,r7
	clr	c
	subb	a,r2
	mov	r7,a
;	printf_large.c:193: ul |= 1;
	orl	_calculate_digit_ul_1_1,#0x01
00104$:
;	printf_large.c:195: } while (--i);
	djnz	r3,00103$
;	printf_large.c:196: value.ul = ul;
	mov	r0,#_value
	mov	a,_calculate_digit_ul_1_1
	movx	@r0,a
	inc	r0
	mov	a,(_calculate_digit_ul_1_1 + 1)
	movx	@r0,a
	inc	r0
	mov	a,(_calculate_digit_ul_1_1 + 2)
	movx	@r0,a
	inc	r0
	mov	a,(_calculate_digit_ul_1_1 + 3)
	movx	@r0,a
;	printf_large.c:197: value.byte[4] = b4;
	mov	r0,#(_value + 0x0004)
	mov	a,r7
	movx	@r0,a
	ret
;------------------------------------------------------------
;Allocation info for local variables in function '_print_format'
;------------------------------------------------------------
;sloc0                     Allocated with name '__print_format_sloc0_1_0'
;sloc1                     Allocated with name '__print_format_sloc1_1_0'
;------------------------------------------------------------
;	printf_large.c:402: int _print_format (pfn_outputchar pfn, void* pvoid, const char *format, va_list ap)
;	-----------------------------------------
;	 function _print_format
;	-----------------------------------------
__print_format:
	mov	r2,dpl
	mov	r3,dph
;	printf_large.c:429: output_char = pfn;
	mov	r0,#_output_char
	mov	a,r2
	movx	@r0,a
	inc	r0
	mov	a,r3
	movx	@r0,a
;	printf_large.c:430: p = pvoid;
	mov	r0,#__print_format_PARM_2
	movx	a,@r0
	mov	r2,a
	inc	r0
	movx	a,@r0
	mov	r3,a
	inc	r0
	movx	a,@r0
	mov	r4,a
	mov	r0,#_p
	mov	a,r2
	movx	@r0,a
	inc	r0
	mov	a,r3
	movx	@r0,a
	inc	r0
	mov	a,r4
	movx	@r0,a
;	printf_large.c:434: charsOutputted = 0;
	mov	r0,#_charsOutputted
	clr	a
	movx	@r0,a
	inc	r0
	movx	@r0,a
;	printf_large.c:442: while( c=*format++ )
00239$:
	mov	r0,#__print_format_PARM_3
	movx	a,@r0
	mov	r2,a
	inc	r0
	movx	a,@r0
	mov	r3,a
	inc	r0
	movx	a,@r0
	mov	r4,a
	mov	dpl,r2
	mov	dph,r3
	mov	b,r4
	lcall	__gptrget
	mov	r5,a
	mov	r0,#__print_format_PARM_3
	mov	a,#0x01
	add	a,r2
	movx	@r0,a
	clr	a
	addc	a,r3
	inc	r0
	movx	@r0,a
	inc	r0
	mov	a,r4
	movx	@r0,a
	mov	a,r5
	mov	r2,a
	jnz	00328$
	ljmp	00241$
00328$:
;	printf_large.c:444: if ( c=='%' )
	cjne	r2,#0x25,00329$
	sjmp	00330$
00329$:
	ljmp	00237$
00330$:
;	printf_large.c:446: left_justify    = 0;
	clr	__print_format_left_justify_1_1
;	printf_large.c:447: zero_padding    = 0;
	clr	__print_format_zero_padding_1_1
;	printf_large.c:448: prefix_sign     = 0;
	clr	__print_format_prefix_sign_1_1
;	printf_large.c:449: prefix_space    = 0;
	clr	__print_format_prefix_space_1_1
;	printf_large.c:450: signed_argument = 0;
	clr	__print_format_signed_argument_1_1
;	printf_large.c:451: char_argument   = 0;
	clr	__print_format_char_argument_1_1
;	printf_large.c:452: long_argument   = 0;
	clr	__print_format_long_argument_1_1
;	printf_large.c:453: float_argument  = 0;
	clr	__print_format_float_argument_1_1
;	printf_large.c:454: radix           = 0;
	mov	r0,#__print_format_radix_1_1
	clr	a
	movx	@r0,a
;	printf_large.c:455: width           = 0;
	mov	r0,#__print_format_width_1_1
	clr	a
	movx	@r0,a
;	printf_large.c:456: decimals        = -1;
	mov	r5,#0xFF
;	printf_large.c:458: get_conversion_spec:
	mov	r0,#__print_format_PARM_3
	movx	a,@r0
	mov	r6,a
	inc	r0
	movx	a,@r0
	mov	r7,a
	inc	r0
	movx	a,@r0
	mov	r3,a
00101$:
;	printf_large.c:460: c = *format++;
	mov	dpl,r6
	mov	dph,r7
	mov	b,r3
	lcall	__gptrget
	mov	r2,a
	inc	dptr
	mov	r6,dpl
	mov	r7,dph
	mov	r0,#__print_format_PARM_3
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	inc	r0
	mov	a,r3
	movx	@r0,a
;	printf_large.c:462: if (c=='%') {
	cjne	r2,#0x25,00103$
;	printf_large.c:463: OUTPUT_CHAR(c, p);
	mov	dpl,r2
	lcall	__output_char
;	printf_large.c:464: continue;
	sjmp	00239$
00103$:
;	printf_large.c:467: if (isdigit(c)) {
	mov	ar4,r2
	cjne	r4,#0x30,00333$
00333$:
	jc	00110$
	mov	ar4,r2
	mov	a,r4
	add	a,#0xff - 0x39
	jc	00110$
;	printf_large.c:468: if (decimals==-1) {
	cjne	r5,#0xFF,00107$
;	printf_large.c:469: width = 10*width + (c - '0');
	push	ar6
	push	ar7
	push	ar3
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	mov	b,#0x0A
	mul	ab
	mov	r3,a
	mov	a,r2
	add	a,#0xd0
	mov	r0,#__print_format_width_1_1
	add	a,r3
	movx	@r0,a
;	printf_large.c:470: if (width == 0) {
	pop	ar3
	pop	ar7
	pop	ar6
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	jnz	00101$
;	printf_large.c:472: zero_padding = 1;
	setb	__print_format_zero_padding_1_1
	sjmp	00101$
00107$:
;	printf_large.c:475: decimals = 10*decimals + (c-'0');
	mov	a,r5
	mov	b,#0x0A
	mul	ab
	mov	r4,a
	mov	a,r2
	add	a,#0xd0
	add	a,r4
	mov	r5,a
;	printf_large.c:477: goto get_conversion_spec;
	sjmp	00101$
00110$:
;	printf_large.c:480: if (c=='.') {
	cjne	r2,#0x2E,00115$
;	printf_large.c:481: if (decimals==-1) decimals=0;
	cjne	r5,#0xFF,00101$
	mov	r5,#0x00
;	printf_large.c:484: goto get_conversion_spec;
	sjmp	00101$
00115$:
;	printf_large.c:487: if (islower(c))
	mov	ar4,r2
	cjne	r4,#0x61,00343$
00343$:
	jc	00117$
	mov	ar4,r2
	mov	a,r4
	add	a,#0xff - 0x7A
	jc	00117$
;	printf_large.c:489: c = toupper(c);
	anl	ar2,#0xDF
;	printf_large.c:490: lower_case = 1;
	setb	_lower_case
	sjmp	00118$
00117$:
;	printf_large.c:493: lower_case = 0;
	clr	_lower_case
00118$:
;	printf_large.c:495: switch( c )
	cjne	r2,#0x20,00346$
	sjmp	00122$
00346$:
	cjne	r2,#0x2B,00347$
	sjmp	00121$
00347$:
	cjne	r2,#0x2D,00348$
	sjmp	00120$
00348$:
	cjne	r2,#0x42,00349$
	sjmp	00123$
00349$:
	cjne	r2,#0x43,00350$
	sjmp	00125$
00350$:
	cjne	r2,#0x44,00351$
	ljmp	00162$
00351$:
	cjne	r2,#0x46,00352$
	ljmp	00166$
00352$:
	cjne	r2,#0x49,00353$
	ljmp	00162$
00353$:
	cjne	r2,#0x4C,00354$
	sjmp	00124$
00354$:
	cjne	r2,#0x4F,00355$
	ljmp	00163$
00355$:
	cjne	r2,#0x50,00356$
	ljmp	00148$
00356$:
	cjne	r2,#0x53,00357$
	sjmp	00129$
00357$:
	cjne	r2,#0x55,00358$
	ljmp	00164$
00358$:
	cjne	r2,#0x58,00359$
	ljmp	00165$
00359$:
	ljmp	00167$
;	printf_large.c:497: case '-':
00120$:
;	printf_large.c:498: left_justify = 1;
	setb	__print_format_left_justify_1_1
;	printf_large.c:499: goto get_conversion_spec;
	ljmp	00101$
;	printf_large.c:500: case '+':
00121$:
;	printf_large.c:501: prefix_sign = 1;
	setb	__print_format_prefix_sign_1_1
;	printf_large.c:502: goto get_conversion_spec;
	ljmp	00101$
;	printf_large.c:503: case ' ':
00122$:
;	printf_large.c:504: prefix_space = 1;
	setb	__print_format_prefix_space_1_1
;	printf_large.c:505: goto get_conversion_spec;
	ljmp	00101$
;	printf_large.c:506: case 'B':
00123$:
;	printf_large.c:507: char_argument = 1;
	setb	__print_format_char_argument_1_1
;	printf_large.c:508: goto get_conversion_spec;
	ljmp	00101$
;	printf_large.c:509: case 'L':
00124$:
;	printf_large.c:510: long_argument = 1;
	setb	__print_format_long_argument_1_1
;	printf_large.c:511: goto get_conversion_spec;
	ljmp	00101$
;	printf_large.c:513: case 'C':
00125$:
;	printf_large.c:514: if( char_argument )
	jnb	__print_format_char_argument_1_1,00127$
;	printf_large.c:515: c = va_arg(ap,char);
	mov	r1,#__print_format_PARM_4
	movx	a,@r1
	dec	a
	mov	r0,a
	mov	r1,#__print_format_PARM_4
	movx	@r1,a
	mov	ar2,@r0
	sjmp	00128$
00127$:
;	printf_large.c:517: c = va_arg(ap,int);
	mov	r1,#__print_format_PARM_4
	movx	a,@r1
	add	a,#0xfe
	mov	r0,a
	mov	r1,#__print_format_PARM_4
	movx	@r1,a
	mov	ar3,@r0
	inc	r0
	mov	ar6,@r0
	dec	r0
	mov	ar2,r3
00128$:
;	printf_large.c:518: OUTPUT_CHAR( c, p );
	mov	dpl,r2
	lcall	__output_char
;	printf_large.c:519: break;
	ljmp	00168$
;	printf_large.c:521: case 'S':
00129$:
;	printf_large.c:522: PTR = va_arg(ap,ptr_t);
	mov	r1,#__print_format_PARM_4
	movx	a,@r1
	add	a,#0xfd
	mov	r0,a
	mov	r1,#__print_format_PARM_4
	movx	@r1,a
	mov	ar3,@r0
	inc	r0
	mov	ar6,@r0
	inc	r0
	mov	ar7,@r0
	dec	r0
	dec	r0
	mov	r0,#_value
	mov	a,r3
	movx	@r0,a
	inc	r0
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
;	printf_large.c:532: length = strlen(PTR);
	mov	r0,#_value
	movx	a,@r0
	mov	r3,a
	inc	r0
	movx	a,@r0
	mov	r6,a
	inc	r0
	movx	a,@r0
	mov	r7,a
	mov	dpl,r3
	mov	dph,r6
	mov	b,r7
	push	ar5
	lcall	_strlen
	mov	r3,dpl
	mov	r6,dph
	pop	ar5
;	printf_large.c:534: if ( decimals == -1 )
	cjne	r5,#0xFF,00131$
;	printf_large.c:536: decimals = length;
	mov	ar5,r3
00131$:
;	printf_large.c:538: if ( ( !left_justify ) && (length < width) )
	jb	__print_format_left_justify_1_1,00281$
	mov	r0,#__print_format_width_1_1
	clr	c
	movx	a,@r0
	mov	b,a
	mov	a,r3
	subb	a,b
	jnc	00281$
;	printf_large.c:540: width -= length;
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	clr	c
	subb	a,r3
	movx	@r0,a
;	printf_large.c:541: while( width-- != 0 )
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	mov	r6,a
00132$:
	mov	ar7,r6
	dec	r6
	mov	r0,#__print_format_width_1_1
	mov	a,r6
	movx	@r0,a
	mov	a,r7
	jz	00321$
;	printf_large.c:543: OUTPUT_CHAR( ' ', p );
	mov	dpl,#0x20
	push	ar3
	push	ar5
	push	ar6
	lcall	__output_char
	pop	ar6
	pop	ar5
	pop	ar3
;	printf_large.c:547: while ( (c = *PTR)  && (decimals-- > 0))
	sjmp	00132$
00321$:
	mov	r0,#__print_format_width_1_1
	mov	a,r6
	movx	@r0,a
00281$:
00139$:
	push	ar3
	mov	r0,#_value
	movx	a,@r0
	mov	r6,a
	inc	r0
	movx	a,@r0
	mov	r7,a
	inc	r0
	movx	a,@r0
	mov	r3,a
	mov	dpl,r6
	mov	dph,r7
	mov	b,r3
	lcall	__gptrget
	mov	r6,a
	mov	r2,a
	pop	ar3
	mov	a,r6
	jz	00141$
	mov	ar6,r5
	dec	r5
	clr	c
	mov	a,#(0x00 ^ 0x80)
	mov	b,r6
	xrl	b,#0x80
	subb	a,b
	jnc	00141$
;	printf_large.c:549: OUTPUT_CHAR( c, p );
	push	ar3
	mov	dpl,r2
	push	ar3
	push	ar5
	lcall	__output_char
	pop	ar5
	pop	ar3
;	printf_large.c:550: PTR++;
	mov	r0,#_value
	movx	a,@r0
	mov	r6,a
	inc	r0
	movx	a,@r0
	mov	r7,a
	inc	r0
	movx	a,@r0
	mov	r3,a
	inc	r6
	cjne	r6,#0x00,00368$
	inc	r7
00368$:
	mov	r0,#_value
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	inc	r0
	mov	a,r3
	movx	@r0,a
	pop	ar3
	sjmp	00139$
00141$:
;	printf_large.c:553: if ( left_justify && (length < width))
	jb	__print_format_left_justify_1_1,00369$
	ljmp	00168$
00369$:
	mov	r0,#__print_format_width_1_1
	clr	c
	movx	a,@r0
	mov	b,a
	mov	a,r3
	subb	a,b
	jc	00370$
	ljmp	00168$
00370$:
;	printf_large.c:555: width -= length;
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	clr	c
	subb	a,r3
	movx	@r0,a
;	printf_large.c:556: while( width-- != 0 )
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	mov	r5,a
00142$:
	mov	ar6,r5
	dec	r5
	mov	r0,#__print_format_width_1_1
	mov	a,r5
	movx	@r0,a
	mov	a,r6
	jnz	00371$
	ljmp	00323$
00371$:
;	printf_large.c:558: OUTPUT_CHAR( ' ', p );
	mov	dpl,#0x20
	push	ar5
	lcall	__output_char
	pop	ar5
;	printf_large.c:563: case 'P':
	sjmp	00142$
00148$:
;	printf_large.c:564: PTR = va_arg(ap,ptr_t);
	mov	r1,#__print_format_PARM_4
	movx	a,@r1
	add	a,#0xfd
	mov	r0,a
	mov	r1,#__print_format_PARM_4
	movx	@r1,a
	mov	ar6,@r0
	inc	r0
	mov	ar7,@r0
	inc	r0
	mov	ar4,@r0
	dec	r0
	dec	r0
	mov	r0,#_value
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	inc	r0
	mov	a,r4
	movx	@r0,a
;	printf_large.c:587: unsigned char memtype = value.byte[2];
	mov	r0,#(_value + 0x0002)
	movx	a,@r0
;	printf_large.c:588: if (memtype > 0x80)
	mov  r2,a
	add	a,#0xff - 0x80
	jnc	00156$
;	printf_large.c:589: c = 'C';
	mov	r2,#0x43
	sjmp	00157$
00156$:
;	printf_large.c:590: else if (memtype > 0x60)
	mov	a,r2
	add	a,#0xff - 0x60
	jnc	00153$
;	printf_large.c:591: c = 'P';
	mov	r2,#0x50
	sjmp	00157$
00153$:
;	printf_large.c:592: else if (memtype > 0x40)
	mov	a,r2
	add	a,#0xff - 0x40
	jnc	00150$
;	printf_large.c:593: c = 'I';
	mov	r2,#0x49
	sjmp	00157$
00150$:
;	printf_large.c:595: c = 'X';
	mov	r2,#0x58
00157$:
;	printf_large.c:597: OUTPUT_CHAR(c, p);
	mov	dpl,r2
	push	ar2
	lcall	__output_char
;	printf_large.c:598: OUTPUT_CHAR(':', p);
	mov	dpl,#0x3A
	lcall	__output_char
;	printf_large.c:599: OUTPUT_CHAR('0', p);
	mov	dpl,#0x30
	lcall	__output_char
;	printf_large.c:600: OUTPUT_CHAR('x', p);
	mov	dpl,#0x78
	lcall	__output_char
	pop	ar2
;	printf_large.c:601: if ((c != 'I' /* idata */) &&
	cjne	r2,#0x49,00375$
	sjmp	00159$
00375$:
;	printf_large.c:602: (c != 'P' /* pdata */))
	cjne	r2,#0x50,00376$
	sjmp	00159$
00376$:
;	printf_large.c:604: OUTPUT_2DIGITS( value.byte[1] );
	mov	r0,#(_value + 0x0001)
	movx	a,@r0
	mov	dpl,a
	lcall	_output_2digits
00159$:
;	printf_large.c:606: OUTPUT_2DIGITS( value.byte[0] );
	mov	r0,#_value
	movx	a,@r0
	mov	dpl,a
	lcall	_output_2digits
;	printf_large.c:613: break;
;	printf_large.c:616: case 'I':
	sjmp	00168$
00162$:
;	printf_large.c:617: signed_argument = 1;
	setb	__print_format_signed_argument_1_1
;	printf_large.c:618: radix = 10;
	mov	r0,#__print_format_radix_1_1
	mov	a,#0x0A
	movx	@r0,a
;	printf_large.c:619: break;
;	printf_large.c:621: case 'O':
	sjmp	00168$
00163$:
;	printf_large.c:622: radix = 8;
	mov	r0,#__print_format_radix_1_1
	mov	a,#0x08
	movx	@r0,a
;	printf_large.c:623: break;
;	printf_large.c:625: case 'U':
	sjmp	00168$
00164$:
;	printf_large.c:626: radix = 10;
	mov	r0,#__print_format_radix_1_1
	mov	a,#0x0A
	movx	@r0,a
;	printf_large.c:627: break;
;	printf_large.c:629: case 'X':
	sjmp	00168$
00165$:
;	printf_large.c:630: radix = 16;
	mov	r0,#__print_format_radix_1_1
	mov	a,#0x10
	movx	@r0,a
;	printf_large.c:631: break;
;	printf_large.c:633: case 'F':
	sjmp	00168$
00166$:
;	printf_large.c:634: float_argument=1;
	setb	__print_format_float_argument_1_1
;	printf_large.c:635: break;
;	printf_large.c:637: default:
	sjmp	00168$
00167$:
;	printf_large.c:639: OUTPUT_CHAR( c, p );
	mov	dpl,r2
	lcall	__output_char
;	printf_large.c:816: return charsOutputted;
;	printf_large.c:641: }
	sjmp	00168$
00323$:
	mov	r0,#__print_format_width_1_1
	mov	a,r5
	movx	@r0,a
00168$:
;	printf_large.c:643: if (float_argument) {
	jnb	__print_format_float_argument_1_1,00234$
;	printf_large.c:644: value.f=va_arg(ap,float);
	mov	r1,#__print_format_PARM_4
	movx	a,@r1
	add	a,#0xfc
	mov	r0,a
	mov	r1,#__print_format_PARM_4
	movx	@r1,a
	mov	__print_format_sloc0_1_0,@r0
	inc	r0
	mov	(__print_format_sloc0_1_0 + 1),@r0
	inc	r0
	mov	(__print_format_sloc0_1_0 + 2),@r0
	inc	r0
	mov	(__print_format_sloc0_1_0 + 3),@r0
	dec	r0
	dec	r0
	dec	r0
	mov	r0,#_value
	mov	a,__print_format_sloc0_1_0
	movx	@r0,a
	inc	r0
	mov	a,(__print_format_sloc0_1_0 + 1)
	movx	@r0,a
	inc	r0
	mov	a,(__print_format_sloc0_1_0 + 2)
	movx	@r0,a
	inc	r0
	mov	a,(__print_format_sloc0_1_0 + 3)
	movx	@r0,a
;	printf_large.c:646: PTR="<NO FLOAT>";
	mov	r0,#_value
	mov	a,#__str_0
	movx	@r0,a
	inc	r0
	mov	a,#(__str_0 >> 8)
	movx	@r0,a
	inc	r0
	mov	a,#0x80
	movx	@r0,a
;	printf_large.c:647: while (c=*PTR++)
00169$:
	mov	r0,#_value
	movx	a,@r0
	mov	__print_format_sloc0_1_0,a
	inc	r0
	movx	a,@r0
	mov	(__print_format_sloc0_1_0 + 1),a
	inc	r0
	movx	a,@r0
	mov	(__print_format_sloc0_1_0 + 2),a
	mov	a,#0x01
	add	a,__print_format_sloc0_1_0
	mov	r5,a
	clr	a
	addc	a,(__print_format_sloc0_1_0 + 1)
	mov	r6,a
	mov	r7,(__print_format_sloc0_1_0 + 2)
	mov	r0,#_value
	mov	a,r5
	movx	@r0,a
	inc	r0
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	mov	dpl,__print_format_sloc0_1_0
	mov	dph,(__print_format_sloc0_1_0 + 1)
	mov	b,(__print_format_sloc0_1_0 + 2)
	lcall	__gptrget
	mov	r5,a
	mov	r2,a
	jnz	00378$
	ljmp	00239$
00378$:
;	printf_large.c:649: OUTPUT_CHAR (c, p);
	mov	dpl,r2
	lcall	__output_char
	sjmp	00169$
00234$:
;	printf_large.c:666: } else if (radix != 0)
	mov	r0,#__print_format_radix_1_1
	movx	a,@r0
	jnz	00379$
	ljmp	00239$
00379$:
;	printf_large.c:671: unsigned char MEM_SPACE_BUF_PP *pstore = &store[5];
	mov	r5,#(__print_format_store_4_22 + 0x0005)
;	printf_large.c:674: if (char_argument)
	jnb	__print_format_char_argument_1_1,00180$
;	printf_large.c:676: value.l = va_arg(ap,char);
	push	ar5
	mov	r1,#__print_format_PARM_4
	movx	a,@r1
	dec	a
	mov	r0,a
	mov	r1,#__print_format_PARM_4
	movx	@r1,a
	mov	a,@r0
	mov	r6,a
	rlc	a
	subb	a,acc
	mov	r7,a
	mov	r5,a
	mov	r4,a
	mov	r0,#_value
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	inc	r0
	mov	a,r5
	movx	@r0,a
	inc	r0
	mov	a,r4
	movx	@r0,a
;	printf_large.c:677: if (!signed_argument)
	pop	ar5
	jnb	__print_format_signed_argument_1_1,00381$
	ljmp	00181$
00381$:
;	printf_large.c:679: value.l &= 0xFF;
	push	ar5
	mov	r0,#_value
	movx	a,@r0
	mov	r4,a
	inc	r0
	movx	a,@r0
	inc	r0
	movx	a,@r0
	inc	r0
	movx	a,@r0
	mov	r6,#0x00
	mov	r7,#0x00
	mov	r5,#0x00
	mov	r0,#_value
	mov	a,r4
	movx	@r0,a
	inc	r0
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	inc	r0
	mov	a,r5
	movx	@r0,a
	pop	ar5
	sjmp	00181$
00180$:
;	printf_large.c:682: else if (long_argument)
	jnb	__print_format_long_argument_1_1,00177$
;	printf_large.c:684: value.l = va_arg(ap,long);
	push	ar5
	mov	r1,#__print_format_PARM_4
	movx	a,@r1
	add	a,#0xfc
	mov	r0,a
	mov	r1,#__print_format_PARM_4
	movx	@r1,a
	mov	ar4,@r0
	inc	r0
	mov	ar6,@r0
	inc	r0
	mov	ar7,@r0
	inc	r0
	mov	ar5,@r0
	dec	r0
	dec	r0
	dec	r0
	mov	r0,#_value
	mov	a,r4
	movx	@r0,a
	inc	r0
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	inc	r0
	mov	a,r5
	movx	@r0,a
	pop	ar5
	sjmp	00181$
00177$:
;	printf_large.c:688: value.l = va_arg(ap,int);
	push	ar5
	mov	r1,#__print_format_PARM_4
	movx	a,@r1
	add	a,#0xfe
	mov	r0,a
	mov	r1,#__print_format_PARM_4
	movx	@r1,a
	mov	ar4,@r0
	inc	r0
	mov	ar6,@r0
	dec	r0
	mov	a,r6
	rlc	a
	subb	a,acc
	mov	r7,a
	mov	r5,a
	mov	r0,#_value
	mov	a,r4
	movx	@r0,a
	inc	r0
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	inc	r0
	mov	a,r5
	movx	@r0,a
;	printf_large.c:689: if (!signed_argument)
	pop	ar5
	jb	__print_format_signed_argument_1_1,00181$
;	printf_large.c:691: value.l &= 0xFFFF;
	push	ar5
	mov	r0,#_value
	movx	a,@r0
	mov	r4,a
	inc	r0
	movx	a,@r0
	mov	r6,a
	inc	r0
	movx	a,@r0
	inc	r0
	movx	a,@r0
	mov	r7,#0x00
	mov	r5,#0x00
	mov	r0,#_value
	mov	a,r4
	movx	@r0,a
	inc	r0
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	inc	r0
	mov	a,r5
	movx	@r0,a
;	printf_large.c:816: return charsOutputted;
	pop	ar5
;	printf_large.c:691: value.l &= 0xFFFF;
00181$:
;	printf_large.c:695: if ( signed_argument )
	jnb	__print_format_signed_argument_1_1,00186$
;	printf_large.c:697: if (value.l < 0)
	push	ar5
	mov	r0,#_value
	movx	a,@r0
	mov	r4,a
	inc	r0
	movx	a,@r0
	mov	r6,a
	inc	r0
	movx	a,@r0
	mov	r7,a
	inc	r0
	movx	a,@r0
	rlc	a
	clr	a
	rlc	a
	pop	ar5
	jz	00183$
;	printf_large.c:698: value.l = -value.l;
	push	ar5
	mov	r0,#_value
	movx	a,@r0
	mov	r4,a
	inc	r0
	movx	a,@r0
	mov	r6,a
	inc	r0
	movx	a,@r0
	mov	r7,a
	inc	r0
	movx	a,@r0
	mov	r5,a
	clr	c
	clr	a
	subb	a,r4
	mov	r4,a
	clr	a
	subb	a,r6
	mov	r6,a
	clr	a
	subb	a,r7
	mov	r7,a
	clr	a
	subb	a,r5
	mov	r5,a
	mov	r0,#_value
	mov	a,r4
	movx	@r0,a
	inc	r0
	mov	a,r6
	movx	@r0,a
	inc	r0
	mov	a,r7
	movx	@r0,a
	inc	r0
	mov	a,r5
	movx	@r0,a
	pop	ar5
	sjmp	00186$
00183$:
;	printf_large.c:700: signed_argument = 0;
	clr	__print_format_signed_argument_1_1
00186$:
;	printf_large.c:704: lsd = 1;
	setb	__print_format_lsd_1_1
;	printf_large.c:706: do {
	mov	__print_format_sloc0_1_0,r5
	mov	r2,#0x00
00190$:
;	printf_large.c:707: value.byte[4] = 0;
	mov	r0,#(_value + 0x0004)
	clr	a
	movx	@r0,a
;	printf_large.c:711: calculate_digit(radix);
	mov	r0,#__print_format_radix_1_1
	movx	a,@r0
	mov	dpl,a
	push	ar2
	lcall	_calculate_digit
	pop	ar2
;	printf_large.c:713: if (!lsd)
	jb	__print_format_lsd_1_1,00188$
;	printf_large.c:715: *pstore = (value.byte[4] << 4) | (value.byte[4] >> 4) | *pstore;
	mov	r0,#(_value + 0x0004)
	movx	a,@r0
	swap	a
	mov	r6,a
	mov	r0,__print_format_sloc0_1_0
	movx	a,@r0
	mov	r7,a
	orl	a,r6
	mov	r0,__print_format_sloc0_1_0
	movx	@r0,a
;	printf_large.c:716: pstore--;
	dec	__print_format_sloc0_1_0
	mov	r5,__print_format_sloc0_1_0
	sjmp	00189$
00188$:
;	printf_large.c:720: *pstore = value.byte[4];
	mov	r0,#(_value + 0x0004)
	movx	a,@r0
	mov	r6,a
	mov	r0,__print_format_sloc0_1_0
	movx	@r0,a
00189$:
;	printf_large.c:722: length++;
	inc	r2
	mov	ar3,r2
;	printf_large.c:723: lsd = !lsd;
	cpl	__print_format_lsd_1_1
;	printf_large.c:724: } while( value.ul );
	mov	r0,#_value
	movx	a,@r0
	mov	__print_format_sloc1_1_0,a
	inc	r0
	movx	a,@r0
	mov	(__print_format_sloc1_1_0 + 1),a
	inc	r0
	movx	a,@r0
	mov	(__print_format_sloc1_1_0 + 2),a
	inc	r0
	movx	a,@r0
	mov	(__print_format_sloc1_1_0 + 3),a
	mov	a,__print_format_sloc1_1_0
	orl	a,(__print_format_sloc1_1_0 + 1)
	orl	a,(__print_format_sloc1_1_0 + 2)
	orl	a,(__print_format_sloc1_1_0 + 3)
	jnz	00190$
;	printf_large.c:726: if (width == 0)
	mov	r5,__print_format_sloc0_1_0
	mov	ar3,r2
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	jnz	00194$
;	printf_large.c:731: width=1;
	mov	r0,#__print_format_width_1_1
	mov	a,#0x01
	movx	@r0,a
00194$:
;	printf_large.c:735: if (!zero_padding && !left_justify)
	jb	__print_format_zero_padding_1_1,00199$
	jb	__print_format_left_justify_1_1,00199$
;	printf_large.c:737: while ( width > (unsigned char) (length+1) )
	mov	a,r3
	inc	a
	mov	r4,a
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	mov	r6,a
00195$:
	clr	c
	mov	a,r4
	subb	a,r6
	jnc	00325$
;	printf_large.c:739: OUTPUT_CHAR( ' ', p );
	mov	dpl,#0x20
	push	ar3
	push	ar4
	push	ar5
	push	ar6
	lcall	__output_char
	pop	ar6
	pop	ar5
	pop	ar4
	pop	ar3
;	printf_large.c:740: width--;
	dec	r6
	sjmp	00195$
00325$:
	mov	r0,#__print_format_width_1_1
	mov	a,r6
	movx	@r0,a
00199$:
;	printf_large.c:744: if (signed_argument) // this now means the original value was negative
	jnb	__print_format_signed_argument_1_1,00209$
;	printf_large.c:746: OUTPUT_CHAR( '-', p );
	mov	dpl,#0x2D
	push	ar3
	push	ar5
	lcall	__output_char
	pop	ar5
	pop	ar3
;	printf_large.c:748: width--;
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	dec	a
	movx	@r0,a
	sjmp	00210$
00209$:
;	printf_large.c:750: else if (length != 0)
	mov	a,r3
	jz	00210$
;	printf_large.c:753: if (prefix_sign)
	jnb	__print_format_prefix_sign_1_1,00204$
;	printf_large.c:755: OUTPUT_CHAR( '+', p );
	mov	dpl,#0x2B
	push	ar3
	push	ar5
	lcall	__output_char
	pop	ar5
	pop	ar3
;	printf_large.c:757: width--;
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	dec	a
	movx	@r0,a
	sjmp	00210$
00204$:
;	printf_large.c:759: else if (prefix_space)
	jnb	__print_format_prefix_space_1_1,00210$
;	printf_large.c:761: OUTPUT_CHAR( ' ', p );
	mov	dpl,#0x20
	push	ar3
	push	ar5
	lcall	__output_char
	pop	ar5
	pop	ar3
;	printf_large.c:763: width--;
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	dec	a
	movx	@r0,a
00210$:
;	printf_large.c:768: if (!left_justify)
	jb	__print_format_left_justify_1_1,00218$
;	printf_large.c:769: while ( width-- > length )
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	mov	r4,a
00211$:
	mov	ar6,r4
	dec	r4
	mov	r0,#__print_format_width_1_1
	mov	a,r4
	movx	@r0,a
	clr	c
	mov	a,r3
	subb	a,r6
	jnc	00326$
;	printf_large.c:771: OUTPUT_CHAR( zero_padding ? '0' : ' ', p );
	jnb	__print_format_zero_padding_1_1,00244$
	mov	r6,#0x30
	sjmp	00245$
00244$:
	mov	r6,#0x20
00245$:
	mov	dpl,r6
	push	ar3
	push	ar4
	push	ar5
	lcall	__output_char
	pop	ar5
	pop	ar4
	pop	ar3
	sjmp	00211$
00218$:
;	printf_large.c:776: if (width > length)
	mov	r0,#__print_format_width_1_1
	clr	c
	movx	a,@r0
	mov	b,a
	mov	a,r3
	subb	a,b
	jnc	00215$
;	printf_large.c:777: width -= length;
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	clr	c
	subb	a,r3
	movx	@r0,a
	sjmp	00318$
00215$:
;	printf_large.c:779: width = 0;
	mov	r0,#__print_format_width_1_1
	clr	a
	movx	@r0,a
;	printf_large.c:816: return charsOutputted;
;	printf_large.c:783: while( length-- )
	sjmp	00318$
00326$:
	mov	r0,#__print_format_width_1_1
	mov	a,r4
	movx	@r0,a
00318$:
	mov	ar0,r5
00223$:
	mov	ar4,r3
	dec	r3
	mov	a,r4
	jz	00225$
;	printf_large.c:785: lsd = !lsd;
	cpl	__print_format_lsd_1_1
;	printf_large.c:786: if (!lsd)
	jb	__print_format_lsd_1_1,00221$
;	printf_large.c:788: pstore++;
	inc	r0
;	printf_large.c:789: value.byte[4] = *pstore >> 4;
	movx	a,@r0
	swap	a
	anl	a,#0x0f
	mov	r4,a
	mov	r1,#(_value + 0x0004)
	movx	@r1,a
	sjmp	00222$
00221$:
;	printf_large.c:793: value.byte[4] = *pstore & 0x0F;
	movx	a,@r0
	mov	r4,a
	anl	ar4,#0x0F
	mov	r1,#(_value + 0x0004)
	mov	a,r4
	movx	@r1,a
00222$:
;	printf_large.c:799: output_digit( value.byte[4] );
	mov	r1,#(_value + 0x0004)
	movx	a,@r1
	mov	dpl,a
	push	ar3
	push	ar0
	lcall	_output_digit
	pop	ar0
	pop	ar3
	sjmp	00223$
00225$:
;	printf_large.c:802: if (left_justify)
	jb	__print_format_left_justify_1_1,00402$
	ljmp	00239$
00402$:
;	printf_large.c:803: while (width-- > 0)
	mov	r0,#__print_format_width_1_1
	movx	a,@r0
	mov	r3,a
00226$:
	mov	ar4,r3
	dec	r3
	mov	a,r4
	jnz	00403$
	ljmp	00239$
00403$:
;	printf_large.c:805: OUTPUT_CHAR(' ', p);
	mov	dpl,#0x20
	push	ar3
	lcall	__output_char
	pop	ar3
	sjmp	00226$
00237$:
;	printf_large.c:812: OUTPUT_CHAR( c, p );
	mov	dpl,r2
	lcall	__output_char
	ljmp	00239$
00241$:
;	printf_large.c:816: return charsOutputted;
	mov	r0,#_charsOutputted
	movx	a,@r0
	mov	dpl,a
	inc	r0
	movx	a,@r0
	mov	dph,a
	ret
	.area CSEG    (CODE)
	.area CONST   (CODE)
__str_0:
	.ascii "<NO FLOAT>"
	.db 0x00
	.area XINIT   (CODE)
	.area CABS    (ABS,CODE)
