www.pudn.com > buttonTest.rar > buttonTest3.xap, change:2012-11-09,size:74792b


	MODULE	crt0
	.ENHANCED
	.LARGE	       ; Not really, but we need the space for DEBUG

	INCLUDE native_if.inc

; Define the segment layout

	.SEG	VAREND
	.PACK	{INIT, VAR, VAREND}, {H'400, H'800}
	.PACK	{CONST, INITC}, {H'7400, H'D400}

; This segment holds stabs debug info and doesn't make it onto bluecore

	.CSEG	DEBUG
	ORG	H'10000

; Put labels at selected positions so
; we can deduce segment size and placement

	.SEG	INIT
INIT:
	.SEG	VAR
VAR:
	.SEG	VAREND
VAREND:
	.SEG	CONST
CONST:
	.SEG	INITC
INITC:

$XAP_AH  EQU H'ffe0
$XAP_AL  EQU H'ffe1
$XAP_UXH EQU H'ffe2
$XAP_UXL EQU H'ffe3
$XAP_UY	 EQU H'ffe4

; Logical address of native globals and stack
; Should these be derived instead?
NATIVE_GLOBALS_LOGICAL_ADDRESS    EQU	H'0400
NATIVE_STACK_LOGICAL_ADDRESS      EQU	H'0800

; Put the version number at the start of the CONST segment

	.SEG	CONST
	DC	19463 ; updated by Makefile from syscalls

; ****************************************************************************
; Startup code
; ****************************************************************************

	.CODE
	ORG	H'0000
	
	ld    al,#VAR-INIT  ; Size of INIT segment
	beq   skip_init
	ld    ah,#INITC     ; Logical source addr
	ld    x,@SHARED_APP_GLOBALS_POS  ; Physical dest addr (globals base)
	st    x,@(-1,y)

init_vars:
	st    ah,@SHARED_MMU_SAFE_LOCATION
	bsr   $dofetch_AH   ; ah has val to copy, x is trashed
	ld    x,@(-1,y)     ; Where to copy to
	st    ah,@(0,x)

	;Increment source and destination
	ld    ah,@SHARED_MMU_SAFE_LOCATION
	add   ah,#1
	ld    x,@(-1,y)
	add   x,#1
	st    x,@(-1,y)
      
	sub   al,#1
	bne   init_vars
skip_init:
	

	; AL is now zero
	ld    ah,#VAREND-VAR  ; Size of BSS segment
	beq   skip_zero
	ld    x,#VAR
loop_zero:
	st    al,@(0,x)
	add   x,#1
	sub   ah,#1
	bne   loop_zero
skip_zero:

	; call init code, normally empty
	bsr   $__init

	; pause waiting for the debugger, if appropriate
	bsr $_NativePauseForDebug

	ld    ah,#0
	ld    al,#0
	bsr   $_main

	; Main may exit by returning or by explicitly calling $exit.
	; In either case exit code will be in AL
	; Note 'real' programs are unlikely to exit.
	bra   $_exit

$_abort:
	; Exit abnormally
	ld    al,#1
	bra   $_exit

;.import _exit
;.import stack_overflow_check
;.import dostore_AL
;.import dofetch_AL
	ENDMOD
	MODULE	exit
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_exit:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#4
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	exit
	MODULE	MessageSendLater
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_MessageSendLater:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#16
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	MessageSendLater
	MODULE	MessagePioTask
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_MessagePioTask:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#48
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	MessagePioTask
	MODULE	PioDebounce32
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_PioDebounce32:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#49
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	PioDebounce32
	MODULE	PioGet32
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_PioGet32:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#50
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	PioGet32
	MODULE	PioSet32
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_PioSet32:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#51
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	PioSet32
	MODULE	PioSetDir32
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_PioSetDir32:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#53
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	PioSetDir32
	MODULE	NativePauseForDebug
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_NativePauseForDebug:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#60
	bra $common_trap_code
trapset_24	EQU	$trapset_24
	ENDMOD	NativePauseForDebug
	MODULE	mmu_ld
	.LARGE
	.ENHANCED
	.CODE

	INCLUDE native_if.inc
	













XH_LOC_Y_OFFSET	       EQU    ((-SHARED_STACK_COVER) - 1)
RETURN_ADDR_Y_OFFSET   EQU    (XH_LOC_Y_OFFSET - 1)




$TOTAL_MMU_STACK_ALLOCATION   CEQU   SHARED_STACK_COVER + SHARED_MMU_WORST_CASE_STACK
        
$dofetch_AL:	    
	
	
	add	y,#-SHARED_STACK_COVER
	enterl    #SHARED_MMU_FETCH_ENTER_SIZE

	
	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	al,@(NATIVE_MMU_LD_HWRD,x)  
	st	al,@(-1,y) 
				   
	ld	xh,@(-1,y)
	ld	x,@(1,x)   
	bsr	0,x
	    
	
	ld	al,@(-(SHARED_MMU_FETCHED_VALUE_OFFSET + SHARED_MMU_FETCH_ENTER_SIZE),y)
	add	y,#(2+SHARED_STACK_COVER) 
	    
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)

$dofetch_AH:
	
	
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_FETCH_ENTER_SIZE

	
	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	ah,@(0,x)  
	st	ah,@(-1,y) 
				   
	ld	xh,@(-1,y)
	ld	x,@(1,x)   
	bsr	0,x

   	
	ld	ah,@(-(SHARED_MMU_FETCHED_VALUE_OFFSET + SHARED_MMU_FETCH_ENTER_SIZE),y)
	add	y,#(2+SHARED_STACK_COVER) 
	    
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dofetch_X:
	
	
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_FETCH_ENTER_SIZE
	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(0,x)  
	st	x,@(-1,y) 
			  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(1,x)  
	bsr	0,x
	
	ld	x,@(-(SHARED_MMU_FETCHED_VALUE_OFFSET + SHARED_MMU_FETCH_ENTER_SIZE),y)
	add	y,#(2+SHARED_STACK_COVER) 
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dofetch_X_internal:
	enterl	#SHARED_MMU_FETCH_ENTER_SIZE
	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(0,x)  
	st	x,@(-1,y) 
			  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(1,x)  
	bsr	0,x
	
	ld	x,@(-(SHARED_MMU_FETCHED_VALUE_OFFSET + SHARED_MMU_FETCH_ENTER_SIZE),y)
	leavel	#SHARED_MMU_FETCH_ENTER_SIZE

$dofetch32_AH:
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_FETCH_ENTER_SIZE
	bsr	$dofetch_X_internal
	ld	AH,@$XAP_UXL
	ld	x,@SHARED_MMU_SAFE_LOCATION
	add	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	bsr	$dofetch_X_internal
	ld	AL,@$XAP_UXL
	ld	x,@SHARED_MMU_SAFE_LOCATION
	sub	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	
	add	y,#(2+SHARED_STACK_COVER) 
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dofetch32_fff8:	
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_FETCH_ENTER_SIZE
	bsr	$dofetch_X_internal
	st	x,@H'FFF8
	ld	x,@SHARED_MMU_SAFE_LOCATION
	add	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	bsr	$dofetch_X_internal
	st	x,@H'FFF9
	ld	x,@SHARED_MMU_SAFE_LOCATION
	sub	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION

	add	y,#(2+SHARED_STACK_COVER) 
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)

	
$dofetch32_fff9:
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_FETCH_ENTER_SIZE
	bsr	$dofetch_X_internal
	st	x,@H'FFF9
	ld	x,@SHARED_MMU_SAFE_LOCATION
	add	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	bsr	$dofetch_X_internal
	st	x,@H'FFFA
	ld	x,@SHARED_MMU_SAFE_LOCATION
	sub	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION

	add	y,#(2+SHARED_STACK_COVER) 
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dofetch32_fffa:
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_FETCH_ENTER_SIZE
	bsr	$dofetch_X_internal
	st	x,@H'FFFA
	ld	x,@SHARED_MMU_SAFE_LOCATION
	add	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	bsr	$dofetch_X_internal
	st	x,@H'FFFB
	ld	x,@SHARED_MMU_SAFE_LOCATION
	sub	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	add	y,#(2+SHARED_STACK_COVER) 
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)

	ENDMOD 
	MODULE	stack_overflow
	.LARGE
	.ENHANCED
	.CODE

	INCLUDE native_if.inc

$stack_overflow_check:
        cmp     y,@(SHARED_STACK_LOW_LIMIT)
        bcc     0,x

        
        
        

$stack_overflow:

	
	
	
	st	al,@(SHARED_AL_EMERGENCY)
	st	x,@(SHARED_X_EMERGENCY)

	
	
	
	
	st	y,@(SHARED_MMU_SAFE_LOCATION)
	ld	y,@(SHARED_STACK_LOW_LIMIT)
	ld	al,@(0,y)
	st	al,@(H'FFFD)
	st	xh,@(0,y)
	ld	al,@(0,y)
	
	st	al,@(SHARED_XH_EMERGENCY)

	
	
	ld	x,@(SHARED_MMU_CODE_ADDRESS)
	ld	al,@(NATIVE_HANDLE_STACK_OFLOW_HWRD,x) 
	st	al,@(0,y)  
	ld	xh,@(0,y)
	ld	x,@(NATIVE_HANDLE_STACK_OFLOW_LWRD,x)

	
	ld	al,@(H'FFFD)
	st	al,@(0,y)

	
	ld	y,@(SHARED_MMU_SAFE_LOCATION)
	
	
	bra	0,x		 

	ENDMOD 
	MODULE	putchar
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_putchar:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#5
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	putchar
	MODULE	MessageWait
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_MessageWait:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#18
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	MessageWait
	MODULE	MessageFree
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_MessageFree:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#20
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	MessageFree
	MODULE	trapset_0
	.CSEG	CODE
	.LARGE
	.ENHANCED
$trapset_0:
	ENDMOD	trapset_0
	MODULE	trapset_24
	.CSEG	CODE
	.LARGE
	.ENHANCED
$trapset_24:
	ENDMOD	trapset_24
	MODULE	common_trap_code
       .LARGE
       .ENHANCED
       .CODE

	INCLUDE native_if.inc

$common_trap_code:

	st	x,@(0,y) 
	ld	x,@SHARED_TRAP_HANDLER_HWRD
	st	x,@(-1,y)
	ld	xh,@(-1,y)
	bra	@SHARED_TRAP_HANDLER_LWRD

	ENDMOD 
	MODULE	mmu_st
	.LARGE
	.ENHANCED
	.CODE

	INCLUDE native_if.inc

XH_LOC_Y_OFFSET	      EQU    ((-SHARED_STACK_COVER) - 1)
RETURN_ADDR_Y_OFFSET  EQU    (XH_LOC_Y_OFFSET - 1)

$dostore_AL:		
	
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	st	al,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)
	    
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	al,@(NATIVE_MMU_ST_HWRD,x)  
	st	al,@(-1,y) 
				   
	ld	xh,@(-1,y)
	ld	x,@(3,x)   
	bsr	0,x
	    
	
	ld	al,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)

	
	add	y,#(2+SHARED_STACK_COVER) 
	  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)

$dostore_AL_internal:
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	st	al,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)
	    
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	al,@(2,x)  
	st	al,@(-1,y) 
			   
	ld	xh,@(-1,y)
	ld	x,@(3,x)   
	bsr	0,x
	    
	
	ld	al,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)

	leavel	#SHARED_MMU_STORE_ENTER_SIZE


$dostore_AH:
	
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	st	ah,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)
	    
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	ah,@(2,x)  
	st	ah,@(-1,y) 
			   
	ld	xh,@(-1,y)
	ld	x,@(3,x)   
	bsr	0,x
	    
	
	ld	ah,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)

	
	add	y,#(2+SHARED_STACK_COVER) 
	  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)

	
$dostore_AH_internal:
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	st	ah,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)
	    
	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	ah,@(2,x)  
	st	ah,@(-1,y) 
				   
	ld	xh,@(-1,y)
	ld	x,@(3,x)   
	bsr	0,x
	    
	
	ld	ah,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)

	leavel	#SHARED_MMU_STORE_ENTER_SIZE


$dostore_fff8:
	
	
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	ld	x,@H'fff8
	st	x,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)
	    
	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(2,x)  
	st	x,@(-1,y) 
			  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(3,x)   
	bsr	0,x
	    
	
	add	y,#(2+SHARED_STACK_COVER) 
	  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dostore_fff8_internal:
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	ld	x,@H'fff8
	st	x,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)
 
	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(2,x)  
	st	x,@(-1,y) 
			  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(3,x)   
	bsr	0,x
	    
	leavel	#SHARED_MMU_STORE_ENTER_SIZE


$dostore_fff9:
	
	
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	ld	x,@H'fff9
	st	x,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)
    
	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(2,x)  
	st	x,@(-1,y) 
				  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(3,x)   
	bsr	0,x
	    
	
	add	y,#(2+SHARED_STACK_COVER) 
	  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dostore_fff9_internal:
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	ld	x,@H'fff9
	st	x,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)

	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(2,x)  
	st	x,@(-1,y) 
				  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(3,x)   
	bsr	0,x

	leavel	#SHARED_MMU_STORE_ENTER_SIZE


$dostore_fffa:
	
	
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	ld	x,@H'fffa
	st	x,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)
	    
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(2,x)  
	st	x,@(-1,y) 
				  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(3,x)   
	bsr	0,x
	    
	
	add	y,#(2+SHARED_STACK_COVER) 
	  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dostore_fffa_internal:
        enterl  #SHARED_MMU_STORE_ENTER_SIZE

	
	ld	x,@H'fffa
	st	x,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)

	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(2,x)  
	st	x,@(-1,y) 
				  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(3,x)   
	bsr	0,x
	    
	leavel	#SHARED_MMU_STORE_ENTER_SIZE


$dostore_fffb:
	
	
	add	y,#-SHARED_STACK_COVER
	enterl	#SHARED_MMU_STORE_ENTER_SIZE

	
	ld	x,@H'fffb
	st	x,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)

	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(2,x)  
	st	x,@(-1,y) 
				  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(3,x)   
	bsr	0,x
	    
	
	add	y,#(2+SHARED_STACK_COVER) 
	  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dostore_fffb_internal:
        enterl  #SHARED_MMU_STORE_ENTER_SIZE

	
	ld	x,@H'fffb
	st	x,@(-(SHARED_MMU_STORED_VALUE_OFFSET + SHARED_MMU_STORE_ENTER_SIZE),y)
	    
	
	
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(2,x)  
	st	x,@(-1,y) 
				  
	ld	xh,@(-1,y)
	ld	x,@SHARED_MMU_CODE_ADDRESS
	ld	x,@(3,x)   
	bsr	0,x
	    
	leavel	#SHARED_MMU_STORE_ENTER_SIZE


$dostore32_AH:
	
	
	add	y,#-SHARED_STACK_COVER 
	enterl	#SHARED_MMU_STORE_ENTER_SIZE
	bsr	$dostore_AH_internal
	ld	x,@SHARED_MMU_SAFE_LOCATION
	add	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	bsr	$dostore_AL_internal
	ld	x,@SHARED_MMU_SAFE_LOCATION
	sub	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION

	add	y,#(2+SHARED_STACK_COVER) 
					  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dostore32_fff8:
   	
	
	add	y,#-SHARED_STACK_COVER 
	enterl	#SHARED_MMU_STORE_ENTER_SIZE
	bsr	$dostore_fff8_internal
	ld	x,@SHARED_MMU_SAFE_LOCATION
	add	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	bsr	$dostore_fff9_internal
	ld	x,@SHARED_MMU_SAFE_LOCATION
	sub	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION

	add	y,#(2+SHARED_STACK_COVER) 
					  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dostore32_fff9:
	
	
	add	y,#-SHARED_STACK_COVER 
	enterl	#SHARED_MMU_STORE_ENTER_SIZE
	bsr	$dostore_fff9_internal
	ld	x,@SHARED_MMU_SAFE_LOCATION
	add	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	bsr	$dostore_fffa_internal
	ld	x,@SHARED_MMU_SAFE_LOCATION
	sub	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION

	add	y,#(2+SHARED_STACK_COVER) 
					  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)


$dostore32_fffa:
	
	
	add	y,#-SHARED_STACK_COVER 
	enterl	#SHARED_MMU_STORE_ENTER_SIZE
	bsr	$dostore_fffa_internal
	ld	x,@SHARED_MMU_SAFE_LOCATION
	add	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION
	bsr	$dostore_fffb_internal
	ld	x,@SHARED_MMU_SAFE_LOCATION
	sub	x,#1
	st	x,@SHARED_MMU_SAFE_LOCATION

	add	y,#(2+SHARED_STACK_COVER) 
					  
	
	ld	xh,@(XH_LOC_Y_OFFSET,y)
	bra	@(RETURN_ADDR_Y_OFFSET,y)

	ENDMOD
	MODULE	VmPutChar
	.ENHANCED
	.CSEG	CODE
	.LARGE

	INCLUDE native_if.inc

$_VmPutChar:
	enterl  #SHARED_TRAP_HANDLER_STACK_USAGE
	ld    x,#32
	bra $common_trap_code
trapset_0	EQU	$trapset_0
	ENDMOD	VmPutChar
	MODULE	e_t_c

	.ALL
e_t_c:
	ENDMOD
	MODULE	buttonTest3
	.LARGE
; Native execution
; GNU C version 3.3.3 (CSR version 30 for xapnative)
; 	compiled by GNU C version 3.2.3 (mingw special 20030504-1).
;# options passed:  -ID:/ADK2.0/tools/include/firmware
;# -ID:/ADK2.0/tools/include/standard
;# -ID:/ADK2.0/tools/include/profiles/BlueLab6.2.0.64 -iprefix -isystem
;# -D__GNUC__=3 -D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=3
;# -DDEBUY_PRINT_ENABLED -MD -MQ -mxap2-mode -menhanced-mode -mlarge-mode
;# -mbig-function-pointers -mleaf-optim -munderscore -ansi -auxbase-strip
;# -g -O -pedantic -Wall -Wmissing-prototypes -Wstrict-prototypes
;# -Wsign-compare -Wredundant-decls -Werror -ansi -fno-builtin-memcpy
;# options enabled:  -fdefer-pop -fthread-jumps -fpeephole -ffunction-cse
;# -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm
;# -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
;# -fsched-interblock -fsched-spec -fbranch-count-reg -fcprop-registers
;# -fcommon -fgnu-linker -fargument-alias -fmerge-constants
;# -fzero-initialized-in-bss -fleading-underscore -fident
;# -fguess-branch-probability -fmath-errno -ftrapping-math -munderscore
;# -mpeephole -mxap2-mode -mlarge-mode -mquiet-mode
;# -minline-block-copy-mode -menhanced-mode -mload-cache-mode
;# -mbitfield-mode -mbig-function-pointers -mleaf-optim

	.ENHANCED
;# begin scan referenced symbols
.IMPORT $_app 0 ; (Non-const ref)
.IMPORT _app_handler 0 ; (Non-const ref)
.IMPORT $_MessagePioTask 0 ; (Non-const ref)
.IMPORT $_PioDebounce32 0 ; (Non-const ref)
.IMPORT $_MessageLoop 0 ; (Non-const ref)
;# end scan referenced symbols
	.CODE
$_main:
	enterl	#4
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_main:
	st	X,@H'ffff
	ld	X,#($_app)
	st	X,@H'fffc
	ld	X,@H'ffff
	ld	AH,#hwrd(_app_handler)
	ld	AL,#lwrd(_app_handler)
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	st	AH,@($_app-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	AL,@($_app+1-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	ld	AL,@H'fffc
	bsr	$_MessagePioTask
	st	AL,@H'ffff
	ld	AL,#H'0002
	st	AL,@(0,Y)
	ld	AL,@H'ffff
	ld	AL,#H'0014
	st	AL,@(H'0001,Y)
	ld	AL,#H'0001; movqi2b+1 peephole
	ld	AH,#H'0000
	bsr	$_PioDebounce32
	bsr	$_MessageLoop
	ld	AL,#H'0000
?LBE_main:
	leavel	#4
;# begin scan referenced symbols
;# import ?LC0 .
;# import ?LC0 .
.IMPORT $_puts 0 ; (Non-const ref)
;# import ?LC1 .
;# import ?LC1 .
.IMPORT _handle_pio1 0 ; (Non-const ref)
;# import ?LC2 .
;# import ?LC2 .
.IMPORT _led1_high 0 ; (Non-const ref)
;# import ?LC3 .
;# import ?LC3 .
.IMPORT _led1_low 0 ; (Non-const ref)
;# import ?LC4 .
;# import ?LC4 .
.IMPORT $_printf 0 ; (Non-const ref)
;# end scan referenced symbols
_app_handler:
	enterl	#5
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_app_handler:
	st	AL,@(H'0001,Y)
	st	AH,@(H'0002,Y)
	ld	AL,#(?LC0)
	bsr	$_puts
	ld	AL,@(H'0002,Y)
	cmp	AL,#H'0001
	beq	?L6
	cmp	AL,#H'0001
	bcs	?L5
	cmp	AL,#-H'7FDD
	bne	?L7
	ld	AL,#(?LC1)
	bsr	$_puts
	ld	AL,@(H'0001,Y)
	bsr	_handle_pio1
	bra	(?L2)
?L5:
	ld	AL,#(?LC2)
	bsr	$_puts
	ld	AL,@(H'0001,Y)
	bsr	_led1_high
	bra	(?L2)
?L6:
	ld	AL,#(?LC3)
	bsr	$_puts
	ld	AL,@(H'0001,Y)
	bsr	_led1_low
	bra	(?L2)
?L7:
	ld	AL,@(H'0002,Y)
	st	AL,@(0,Y)
	ld	AL,#(?LC4)
	bsr	$_printf
?L2:
?LBE_app_handler:
	leavel	#5
	.SEG	CONST
?LC0:
	dc	H'61
	dc	H'70
	dc	H'70
	dc	H'5F
	dc	H'68
	dc	H'61
	dc	H'6E
	dc	H'64
	dc	H'6C
	dc	H'65
	dc	H'72
	dc	H'00
?LC1:
	dc	H'4D
	dc	H'45
	dc	H'53
	dc	H'53
	dc	H'41
	dc	H'47
	dc	H'45
	dc	H'5F
	dc	H'50
	dc	H'49
	dc	H'4F
	dc	H'5F
	dc	H'43
	dc	H'48
	dc	H'41
	dc	H'4E
	dc	H'47
	dc	H'45
	dc	H'44
	dc	H'00
?LC2:
	dc	H'4D
	dc	H'45
	dc	H'53
	dc	H'53
	dc	H'41
	dc	H'47
	dc	H'45
	dc	H'5F
	dc	H'4C
	dc	H'45
	dc	H'44
	dc	H'5F
	dc	H'48
	dc	H'49
	dc	H'47
	dc	H'48
	dc	H'00
?LC3:
	dc	H'4D
	dc	H'45
	dc	H'53
	dc	H'53
	dc	H'41
	dc	H'47
	dc	H'45
	dc	H'5F
	dc	H'4C
	dc	H'45
	dc	H'44
	dc	H'5F
	dc	H'4C
	dc	H'4F
	dc	H'57
	dc	H'00
?LC4:
	dc	H'55
	dc	H'6E
	dc	H'68
	dc	H'61
	dc	H'6E
	dc	H'64
	dc	H'6C
	dc	H'65
	dc	H'64
	dc	H'20
	dc	H'6D
	dc	H'65
	dc	H'73
	dc	H'73
	dc	H'61
	dc	H'67
	dc	H'65
	dc	H'20
	dc	H'30
	dc	H'78
	dc	H'25
	dc	H'78
	dc	H'0A
	dc	H'00
	.CODE
;# begin scan referenced symbols
.IMPORT $_PioGet32 0 ; (Non-const ref)
;# import ?LC5 .
;# import ?LC5 .
;# import ?LC6 .
;# import ?LC6 .
;# end scan referenced symbols
_handle_pio1:
	enterl	#5
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_handle_pio1:
	st	AL,@(H'0002,Y)
	bsr	$_PioGet32
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,#(?LC5)
	bsr	$_printf
	bsr	$_PioGet32
	and	AL,#H'0001
	cmp	AL,#H'0000
	beq	?L12
	ld	AL,#(?LC6)
	bsr	$_puts
	ld	AL,@(H'0002,Y)
	bsr	_led1_high
?L12:
?LBE_handle_pio1:
	leavel	#5
	.SEG	CONST
?LC5:
	dc	H'68
	dc	H'61
	dc	H'6E
	dc	H'64
	dc	H'6C
	dc	H'65
	dc	H'5F
	dc	H'70
	dc	H'69
	dc	H'6F
	dc	H'20
	dc	H'73
	dc	H'74
	dc	H'61
	dc	H'72
	dc	H'74
	dc	H'69
	dc	H'6E
	dc	H'67
	dc	H'20
	dc	H'50
	dc	H'69
	dc	H'6F
	dc	H'47
	dc	H'65
	dc	H'74
	dc	H'33
	dc	H'32
	dc	H'20
	dc	H'25
	dc	H'6C
	dc	H'78
	dc	H'0A
	dc	H'00
?LC6:
	dc	H'42
	dc	H'75
	dc	H'74
	dc	H'74
	dc	H'6F
	dc	H'6E
	dc	H'20
	dc	H'70
	dc	H'72
	dc	H'65
	dc	H'73
	dc	H'73
	dc	H'65
	dc	H'64
	dc	H'00
	.CODE
;# begin scan referenced symbols
.IMPORT $_PioSetDir32 0 ; (Non-const ref)
.IMPORT $_PioSet32 0 ; (Non-const ref)
.IMPORT $_MessageSendLater 0 ; (Non-const ref)
;# end scan referenced symbols
_led1_high:
	enterl	#6
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_led1_high:
	st	AL,@(H'0003,Y)
	bsr	$_PioGet32
	and	AL,#H'0001
	cmp	AL,#H'0000
	beq	?L15
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(0,Y)
	ld	AL,#H'00FF
	st	AL,@(1,Y)
	ld	AL,@H'ffff
	ld	AL,#H'0002
	ld	AH,#H'0000
	bsr	$_PioSetDir32
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,@H'ffff
	ld	AL,#H'0002
	ld	AH,#H'0000
	bsr	$_PioSet32
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(0,Y)
;	ld	AL,@H'ffff; Redundant: REMOVED by as
;	st	AL,@H'ffff; Redundant: REMOVED by as
	ld	AL,#H'0000
	st	AL,@(H'0001,Y)
	ld	AL,#H'03E8
	st	AL,@(H'0002,Y)
	ld	AL,@H'ffff
	ld	AL,@(H'0003,Y)
	ld	AH,#H'0001
	bsr	$_MessageSendLater
?L15:
?LBE_led1_high:
	leavel	#6
;# begin scan referenced symbols
;# end scan referenced symbols
_led1_low:
	enterl	#6
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_led1_low:
	st	AL,@(H'0003,Y)
	bsr	$_PioGet32
	and	AL,#H'0001
	cmp	AL,#H'0000
	beq	?L18
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(0,Y)
	ld	AL,#H'00FF
	st	AL,@(1,Y)
	ld	AL,@H'ffff
	ld	AL,#H'0002
	ld	AH,#H'0000
	bsr	$_PioSetDir32
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(0,Y)
	ld	AL,#H'00FF
	st	AL,@(1,Y)
	ld	AL,@H'ffff
	ld	AL,#H'0002
	ld	AH,#H'0000
	bsr	$_PioSet32
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(0,Y)
;	ld	AL,@H'ffff; Redundant: REMOVED by as
;	st	AL,@H'ffff; Redundant: REMOVED by as
	ld	AL,#H'0000
	st	AL,@(H'0001,Y)
	ld	AL,#H'00C8
	st	AL,@(H'0002,Y)
	ld	AL,@H'ffff
	ld	AL,@(H'0003,Y)
	ld	AH,#H'0000
	bsr	$_MessageSendLater
?L18:
?LBE_led1_low:
	leavel	#6
	.SEG	VAR
$_app:
	DS	2
	ENDMOD

;# Function pattern *movqi_set_rsvd_reg used[1] = 1 total = 1
;# Function pattern *movqi_store_y_relative used[0] = 6 used[1] = 3 total = 9
;# Function pattern *movqi_fetch_y_relative used[0] = 2 total = 2
;# Function pattern *movhi_store_y_relative used[0] = 1 used[2] = 6 total = 7
;# Function pattern *movhi_store_symbol_ref used[0] = 1 total = 1
;# Function pattern *movqi2 used[0] = 26 total = 26
;# Function pattern *movhi used[2] = 1 total = 1
;# Function pattern *andqi3 used[0] = 3 total = 3
;# Function pattern jump used[0] = 3 total = 3
;# Function pattern *call1 used[0] = 7 total = 7
;# Function pattern *call_value1 used[0] = 17 total = 17
;# Function pattern addhi3-1 used[0] = 1 total = 1
;# Function pattern extendhfsf2+3 used[0] = 6 total = 6
	MODULE	printf
	.LARGE
; Native execution
; GNU C version 3.3.3 (CSR version 30 for xapnative)
; 	compiled by GNU C version 3.2.3 (mingw special 20030504-1).
;# options passed: 
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/firmware
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/profiles/BlueLab6.2.0.64
;# -I.
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -iprefix -isystem -D__GNUC__=3 -D__GNUC_MINOR__=3
;# -D__GNUC_PATCHLEVEL__=3 -MD -MQ -mxap2-mode -menhanced-mode -mlarge-mode
;# -mbig-function-pointers -mleaf-optim -munderscore -ansi -auxbase-strip
;# -g -g -O -pedantic -Wall -Wmissing-prototypes -Wstrict-prototypes
;# -Wsign-compare -Wredundant-decls -Werror -Wall -W -Wmissing-prototypes
;# -Wstrict-prototypes -Wsign-compare -Wredundant-decls -Werror -ansi
;# -fno-builtin-memcpy
;# options enabled:  -fdefer-pop -fthread-jumps -fpeephole -ffunction-cse
;# -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm
;# -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
;# -fsched-interblock -fsched-spec -fbranch-count-reg -fcprop-registers
;# -fcommon -fgnu-linker -fargument-alias -fmerge-constants
;# -fzero-initialized-in-bss -fleading-underscore -fident
;# -fguess-branch-probability -fmath-errno -ftrapping-math -munderscore
;# -mpeephole -mxap2-mode -mlarge-mode -mquiet-mode
;# -minline-block-copy-mode -menhanced-mode -mload-cache-mode
;# -mbitfield-mode -mbig-function-pointers -mleaf-optim

	.ENHANCED
;# begin scan referenced symbols
.IMPORT $___print 0 ; (Non-const ref)
;# end scan referenced symbols
	.CODE
$_printf:
	enterl	#4
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_printf:
	ld	AH,@$XAP_AL
?LBB2:
	ld	AL,@$XAP_UY
	sub	AL,@(^crt0.SHARED_STACK_LOW_LIMIT)
	add	AL,#H'0001+^crt0.NATIVE_STACK_LOGICAL_ADDRESS + ^crt0.SHARED_STACK_COVER + ^crt0.SHARED_MMU_WORST_CASE_STACK
	st	AL,@H'fffc
	ld	AL,@$XAP_UY
	sub	AL,@(^crt0.SHARED_STACK_LOW_LIMIT)
	add	AL,#H'0004+^crt0.NATIVE_STACK_LOGICAL_ADDRESS + ^crt0.SHARED_STACK_COVER + ^crt0.SHARED_MMU_WORST_CASE_STACK
	bsr	$dostore_AL
	st	AL,@(0,Y)
	ld	AL,#H'0000
	bsr	$___print
?LBE2:
?LBE_printf:
	leavel	#4
;.stabn	192,0,0,?LBB2
;.stabn	224,0,0,?LBE2
	ENDMOD

;# Function pattern *movqi_set_rsvd_reg used[0] = 1 total = 1
;# Function pattern *movqi_store_y_relative used[0] = 1 total = 1
;# Function pattern *movqi_store_general used[0] = 1 total = 1
;# Function pattern *movqi2 used[0] = 1 total = 1
;# Function pattern *movqi2b used[0] = 1 total = 1
;# Function pattern *addqi0 used[0] = 2 total = 2
;# Function pattern *call_value1 used[0] = 1 total = 1
	MODULE	puts
	.LARGE
; Native execution
; GNU C version 3.3.3 (CSR version 30 for xapnative)
; 	compiled by GNU C version 3.2.3 (mingw special 20030504-1).
;# options passed: 
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/firmware
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/profiles/BlueLab6.2.0.64
;# -I.
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -iprefix -isystem -D__GNUC__=3 -D__GNUC_MINOR__=3
;# -D__GNUC_PATCHLEVEL__=3 -MD -MQ -mxap2-mode -menhanced-mode -mlarge-mode
;# -mbig-function-pointers -mleaf-optim -munderscore -ansi -auxbase-strip
;# -g -g -O -pedantic -Wall -Wmissing-prototypes -Wstrict-prototypes
;# -Wsign-compare -Wredundant-decls -Werror -Wall -W -Wmissing-prototypes
;# -Wstrict-prototypes -Wsign-compare -Wredundant-decls -Werror -ansi
;# -fno-builtin-memcpy
;# options enabled:  -fdefer-pop -fthread-jumps -fpeephole -ffunction-cse
;# -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm
;# -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
;# -fsched-interblock -fsched-spec -fbranch-count-reg -fcprop-registers
;# -fcommon -fgnu-linker -fargument-alias -fmerge-constants
;# -fzero-initialized-in-bss -fleading-underscore -fident
;# -fguess-branch-probability -fmath-errno -ftrapping-math -munderscore
;# -mpeephole -mxap2-mode -mlarge-mode -mquiet-mode
;# -minline-block-copy-mode -menhanced-mode -mload-cache-mode
;# -mbitfield-mode -mbig-function-pointers -mleaf-optim

	.ENHANCED
;# begin scan referenced symbols
.IMPORT $_putchar 0 ; (Non-const ref)
;# end scan referenced symbols
	.CODE
$_puts:
	enterl	#3
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_puts:
	st	AL,@(0,Y)
	st	AL,@H'fffc
	bsr	$dofetch_AL
	cmp	AL,#H'0000
	beq	?L7
?L5:
	ld	X,@(0,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	ld	AH,#H'0001
	add	AH,@H'fffc
	st	AH,@(0,Y)
	bsr	$_putchar
	ld	X,@(0,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'0000
	bne	?L5
?L7:
	ld	AL,#H'000A
	bsr	$_putchar
	ld	AL,#H'0001
?LBE_puts:
	leavel	#3
	ENDMOD

;# Function pattern *movqi_set_rsvd_reg used[0] = 1 total = 1
;# Function pattern *movqi_fetch_general used[0] = 1 total = 1
;# Function pattern *movqi_store_y_relative used[0] = 2 total = 2
;# Function pattern *movqi2 used[0] = 2 total = 2
;# Function pattern *addqi2 used[2] = 1 total = 1
;# Function pattern *call_value1 used[0] = 2 total = 2
;# Function pattern addsi3+1 used[0] = 2 total = 2
;# Function pattern extendhfsf2+3 used[0] = 2 total = 2
	MODULE	_init
	.LARGE
; Native execution
; GNU C version 3.3.3 (CSR version 30 for xapnative)
; 	compiled by GNU C version 3.2.3 (mingw special 20030504-1).
;# options passed: 
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/firmware
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/profiles/BlueLab6.2.0.64
;# -I.
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -iprefix -isystem -D__GNUC__=3 -D__GNUC_MINOR__=3
;# -D__GNUC_PATCHLEVEL__=3 -MD -MQ -mxap2-mode -menhanced-mode -mlarge-mode
;# -mbig-function-pointers -mleaf-optim -munderscore -ansi -auxbase-strip
;# -g -g -O -pedantic -Wall -Wmissing-prototypes -Wstrict-prototypes
;# -Wsign-compare -Wredundant-decls -Werror -Wall -W -Wmissing-prototypes
;# -Wstrict-prototypes -Wsign-compare -Wredundant-decls -Werror -ansi
;# -fno-builtin-memcpy
;# options enabled:  -fdefer-pop -fthread-jumps -fpeephole -ffunction-cse
;# -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm
;# -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
;# -fsched-interblock -fsched-spec -fbranch-count-reg -fcprop-registers
;# -fcommon -fgnu-linker -fargument-alias -fmerge-constants
;# -fzero-initialized-in-bss -fleading-underscore -fident
;# -fguess-branch-probability -fmath-errno -ftrapping-math -munderscore
;# -mpeephole -mxap2-mode -mlarge-mode -mquiet-mode
;# -minline-block-copy-mode -menhanced-mode -mload-cache-mode
;# -mbitfield-mode -mbig-function-pointers -mleaf-optim

	.ENHANCED
;# begin scan referenced symbols
;# end scan referenced symbols
	.CODE
$__init:
; leaf function with empty stack frame
?LBB__init:
?LBE__init:
	bra	0,X
	ENDMOD

	MODULE	MessageLoop
	.LARGE
; Native execution
; GNU C version 3.3.3 (CSR version 30 for xapnative)
; 	compiled by GNU C version 3.2.3 (mingw special 20030504-1).
;# options passed: 
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/firmware
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/profiles/BlueLab6.2.0.64
;# -I.
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -iprefix -isystem -D__GNUC__=3 -D__GNUC_MINOR__=3
;# -D__GNUC_PATCHLEVEL__=3 -MD -MQ -mxap2-mode -menhanced-mode -mlarge-mode
;# -mbig-function-pointers -mleaf-optim -munderscore -ansi -auxbase-strip
;# -g -g -O -pedantic -Wall -Wmissing-prototypes -Wstrict-prototypes
;# -Wsign-compare -Wredundant-decls -Werror -Wall -W -Wmissing-prototypes
;# -Wstrict-prototypes -Wsign-compare -Wredundant-decls -Werror -ansi
;# -fno-builtin-memcpy
;# options enabled:  -fdefer-pop -fthread-jumps -fpeephole -ffunction-cse
;# -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm
;# -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
;# -fsched-interblock -fsched-spec -fbranch-count-reg -fcprop-registers
;# -fcommon -fgnu-linker -fargument-alias -fmerge-constants
;# -fzero-initialized-in-bss -fleading-underscore -fident
;# -fguess-branch-probability -fmath-errno -ftrapping-math -munderscore
;# -mpeephole -mxap2-mode -mlarge-mode -mquiet-mode
;# -minline-block-copy-mode -menhanced-mode -mload-cache-mode
;# -mbitfield-mode -mbig-function-pointers -mleaf-optim

	.ENHANCED
;# begin scan referenced symbols
.IMPORT $_MessageWait 0 ; (Non-const ref)
.IMPORT $_MessageFree 0 ; (Non-const ref)
;# end scan referenced symbols
	.CODE
$_MessageLoop:
	enterl	#6
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_MessageLoop:
?L2:
	ld	AL,@$XAP_UY
	sub	AL,@(^crt0.SHARED_STACK_LOW_LIMIT)
	add	AL,#H'0001+^crt0.NATIVE_STACK_LOGICAL_ADDRESS + ^crt0.SHARED_STACK_COVER + ^crt0.SHARED_MMU_WORST_CASE_STACK
?LBB2:
?LBB3:
	bsr	$_MessageWait
	ld	AH,@(H'0001,Y)
	ld	AL,@(H'0003,Y)
	st	AL,@(0,Y)
	st	AH,@H'fffc
	bsr	$dofetch32_fff8
	ld	AL,@$XAP_AH
	ld	AH,@(H'0002,Y)
	bsr	?L5
	
?L5:
	add	X,@H'fff9
	st	X,@H'ffff
	ld	X,@$XAP_UXH
	addc	X,@H'fff8
	st	X,@(-4,Y)
	ld	XH,@(-4,Y)
	ld	X,@H'ffff
	bsr	-?L5,X
	ld	AL,@(H'0002,Y)
	ld	AH,@(H'0003,Y)
	bsr	$_MessageFree
?LBE3:
	bra	(?L2)
?LBE2:
?LBE_MessageLoop:
	leavel	#6
;.stabn	192,0,0,?LBB3
;.stabn	224,0,0,?LBE3
	ENDMOD

;# Function pattern *movqi_set_rsvd_reg used[0] = 1 total = 1
;# Function pattern *movqi_store_y_relative used[0] = 1 total = 1
;# Function pattern *movqi_fetch_y_relative used[0] = 5 total = 5
;# Function pattern *movhi_fetch_general used[0] = 1 total = 1
;# Function pattern *movqi2 used[0] = 1 total = 1
;# Function pattern *addqi0 used[0] = 1 total = 1
;# Function pattern jump used[0] = 1 total = 1
;# Function pattern *call1 used[0] = 2 total = 2
;# Function pattern *call4 used[0] = 1 total = 1
	MODULE	print
	.LARGE
; Native execution
; GNU C version 3.3.3 (CSR version 30 for xapnative)
; 	compiled by GNU C version 3.2.3 (mingw special 20030504-1).
;# options passed: 
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/firmware
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/profiles/BlueLab6.2.0.64
;# -I.
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -iprefix -isystem -D__GNUC__=3 -D__GNUC_MINOR__=3
;# -D__GNUC_PATCHLEVEL__=3 -MD -MQ -mxap2-mode -menhanced-mode -mlarge-mode
;# -mbig-function-pointers -mleaf-optim -munderscore -ansi -auxbase-strip
;# -g -g -O -pedantic -Wall -Wmissing-prototypes -Wstrict-prototypes
;# -Wsign-compare -Wredundant-decls -Werror -Wall -W -Wmissing-prototypes
;# -Wstrict-prototypes -Wsign-compare -Wredundant-decls -Werror -ansi
;# -fno-builtin-memcpy
;# options enabled:  -fdefer-pop -fthread-jumps -fpeephole -ffunction-cse
;# -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm
;# -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
;# -fsched-interblock -fsched-spec -fbranch-count-reg -fcprop-registers
;# -fcommon -fgnu-linker -fargument-alias -fmerge-constants
;# -fzero-initialized-in-bss -fleading-underscore -fident
;# -fguess-branch-probability -fmath-errno -ftrapping-math -munderscore
;# -mpeephole -mxap2-mode -mlarge-mode -mquiet-mode
;# -minline-block-copy-mode -menhanced-mode -mload-cache-mode
;# -mbitfield-mode -mbig-function-pointers -mleaf-optim

	.ENHANCED
;# begin scan referenced symbols
.IMPORT $_info 0 ; (Non-const ref)
.IMPORT $_VmPutChar 0 ; (Non-const ref)
;# end scan referenced symbols
	.CODE
_printChar:
	enterl	#2
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_printChar:
	st	AL,@H'fff8
?LBB2:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	AL,@H'fffc
	bsr	$dofetch_AH
	ld	AL,@$XAP_AH
	nadd	AL,#H'0000
	cmp	AL,#(H'0001+H'000F)
	bcc	?L2
	ld	AL,@$XAP_AH
	nadd	AL,#H'0000
	ld	AH,@H'fff8
	bsr	$_VmPutChar
	bra	(?L3)
?L2:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	AL,@H'fffc
	bsr	$dofetch_AH
	add	AL,#H'0004
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	X,@$XAP_AH
	add	X,@$XAP_AL
	st	X,@H'fffc; addqi2+3 peephole
	bsr	$dostore_fff8
?L3:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0004
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	add	AL,#H'0001
	bsr	$dostore_AL
?LBE2:
?LBE_printChar:
	leavel	#2
;.stabn	192,0,0,?LBB2
;.stabn	224,0,0,?LBE2
;# begin scan referenced symbols
.IMPORT _printChar 0 ; (Non-const ref)
;# end scan referenced symbols
_printString:
	enterl	#3
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_printString:
	st	AL,@(0,Y)
?LBB3:
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@H'fff8
	ld	AL,@H'ffff
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	ld	AH,@$XAP_AL
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	X,@H'fff8
	cmp	X,@$XAP_AL
	bge	?L25
?L10:
	ld	AL,@(0,Y)
	add	AL,@H'fff8
	st	AL,@H'fffc
	bsr	$dofetch_AL
	cmp	AL,#H'0000
	bne	?L7
	ld	X,@$XAP_AH
	add	X,#H'0003
	st	X,@H'fffc; addqi2+3 peephole
	bsr	$dostore_fff8
?L7:
	st	AL,@H'ffff
	ld	AL,@H'fff8
	add	AL,#H'0001
	st	AL,@H'fff8
	ld	AL,@H'ffff
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AH,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	ld	X,@$XAP_AH
	add	X,#H'0003
	st	X,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	X,@H'fff8
	cmp	X,@$XAP_AL
	blt	?L10
?L25:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	X,@H'ffff
	ld	X,@$XAP_AL
	add	X,#H'0002
	st	X,@H'fff8
	ld	X,@H'ffff
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dofetch_AH; movqi_fetch_general+1 peephole
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	sub	AH,@$XAP_AL
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dostore_AH; movqi_fetch_general+2 peephole
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AH,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	ld	X,@$XAP_AH
	add	X,#H'0001
	st	X,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	cmp	AL,#H'0000
	blt	?L11
	ld	X,@$XAP_AH
	add	X,#H'0002
	st	X,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L11
?L15:
	ld	AL,#H'0020
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L15
?L11:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L28
?L19:
	ld	X,@(0,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	ld	AH,#H'0001
	add	AH,@H'fffc
	st	AH,@(0,Y)
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L19
?L28:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L30
?L23:
	ld	AL,#H'0020
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L23
?L30:
?LBE3:
?LBE_printString:
	leavel	#3
;.stabn	192,0,0,?LBB3
;.stabn	224,0,0,?LBE3
	.SEG	CONST
_digits:
	dc	H'30
	dc	H'31
	dc	H'32
	dc	H'33
	dc	H'34
	dc	H'35
	dc	H'36
	dc	H'37
	dc	H'38
	dc	H'39
	dc	H'61
	dc	H'62
	dc	H'63
	dc	H'64
	dc	H'65
	dc	H'66
	dc	H'30
	dc	H'31
	dc	H'32
	dc	H'33
	dc	H'34
	dc	H'35
	dc	H'36
	dc	H'37
	dc	H'38
	dc	H'39
	dc	H'41
	dc	H'42
	dc	H'43
	dc	H'44
	dc	H'45
	dc	H'46
;# begin scan referenced symbols
.IMPORT _digits 1 ; (Const ref)
;# end scan referenced symbols
	.CODE
_printUnsigned8:
	enterl	#5
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_printUnsigned8:
	st	AH,@(0,Y)
	st	AL,@(1,Y)
?LBB4:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	smult	#H'0003
	st	AL,@(H'0002,Y)
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	lsr	@(H'0002,Y)
	cmp	AH,#H'0000
	bne	?L74
	cmp	AL,#H'0000
	beq	?L66
?L74:
?L45:
	ld	AL,@(H'0002,Y)
	add	AL,#H'0003
	st	AL,@(H'0002,Y)
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	add	AL,#H'0001
	bsr	$dostore_AL
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	lsr	@(H'0002,Y)
	cmp	AH,#H'0000
	bne	?L45
	cmp	AL,#H'0000
	bne	?L45
?L66:
	ld	AL,@(H'0002,Y)
	add	AL,#-H'0003
	st	AL,@(H'0002,Y)
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	X,@H'ffff
	ld	X,@$XAP_AL
	add	X,#H'0002
	st	X,@H'fff8
	ld	X,@H'ffff
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dofetch_AH; movqi_fetch_general+1 peephole
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	sub	AH,@$XAP_AL
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dostore_AH; movqi_fetch_general+2 peephole
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	AL,@H'fff8
	ld	AH,#H'0001
	add	AH,@$XAP_AL
	st	AH,@H'fffc
	bsr	$dofetch_AL
	cmp	AL,#H'0000
	blt	?L46
	and	AL,#H'0002
	cmp	AL,#H'0000
	beq	?L47
	ld	X,@H'fff8
	add	X,#H'0002
	st	X,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L46
?L51:
	ld	AL,#H'0030
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L51
	bra	(?L46)
?L47:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L46
?L56:
	ld	AL,#H'0020
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L56
?L46:
	ld	AL,@(H'0002,Y)
	cmp	AL,#H'0000
	blt	?L71
?L60:
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	lsr	@(H'0002,Y)
	and	AL,#H'0007
	add	AL,#(_digits)
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	bsr	_printChar
	ld	AL,@(H'0002,Y)
	add	AL,#-H'0003
	st	AL,@(H'0002,Y)
	cmp	AL,#H'0000
	bge	?L60
?L71:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L73
?L64:
	ld	AL,#H'0020
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L64
?L73:
?LBE4:
?LBE_printUnsigned8:
	leavel	#5
;.stabn	192,0,0,?LBB4
;.stabn	224,0,0,?LBE4
;# begin scan referenced symbols
;# end scan referenced symbols
_printUnsigned16:
	enterl	#5
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_printUnsigned16:
	st	AH,@(0,Y)
	st	AL,@(1,Y)
?LBB5:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	lsl	#H'0010
	asr	#H'000E
	st	AL,@(H'0002,Y)
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	lsr	@(H'0002,Y)
	cmp	AH,#H'0000
	bne	?L119
	cmp	AL,#H'0000
	beq	?L111
?L119:
?L90:
	ld	AL,@(H'0002,Y)
	add	AL,#H'0004
	st	AL,@(H'0002,Y)
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	add	AL,#H'0001
	bsr	$dostore_AL
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	lsr	@(H'0002,Y)
	cmp	AH,#H'0000
	bne	?L90
	cmp	AL,#H'0000
	bne	?L90
?L111:
	ld	AL,@(H'0002,Y)
	add	AL,#-H'0004
	st	AL,@(H'0002,Y)
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	X,@H'ffff
	ld	X,@$XAP_AL
	add	X,#H'0002
	st	X,@H'fff8
	ld	X,@H'ffff
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dofetch_AH; movqi_fetch_general+1 peephole
	add	AL,#H'0003
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	sub	AH,@$XAP_AL
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dostore_AH; movqi_fetch_general+2 peephole
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	AL,@H'fff8
	ld	AH,#H'0001
	add	AH,@$XAP_AL
	st	AH,@H'fffc
	bsr	$dofetch_AL
	cmp	AL,#H'0000
	blt	?L91
	and	AL,#H'0002
	cmp	AL,#H'0000
	beq	?L92
	ld	X,@H'fff8
	add	X,#H'0002
	st	X,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L91
?L96:
	ld	AL,#H'0030
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L96
	bra	(?L91)
?L92:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L91
?L101:
	ld	AL,#H'0020
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L101
?L91:
	ld	AL,@(H'0002,Y)
	cmp	AL,#H'0000
	blt	?L116
?L105:
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	lsr	@(H'0002,Y)
	ld	AH,@$XAP_AL
	and	AH,#H'000F
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0001
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	and	AL,#H'0010
	add	AL,#(_digits)
	add	AL,@$XAP_AH
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	bsr	_printChar
	ld	AL,@(H'0002,Y)
	add	AL,#-H'0004
	st	AL,@(H'0002,Y)
	cmp	AL,#H'0000
	bge	?L105
?L116:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L118
?L109:
	ld	AL,#H'0020
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L109
?L118:
?LBE5:
?LBE_printUnsigned16:
	leavel	#5
;.stabn	192,0,0,?LBB5
;.stabn	224,0,0,?LBE5
;# begin scan referenced symbols
;# end scan referenced symbols
_printUnsigned10:
	enterl	#5
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_printUnsigned10:
	st	AH,@(0,Y)
	st	AL,@(1,Y)
?LBB6:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AH,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	AL,@H'ffff
	ld	AL,@$XAP_AH
	add	AL,#H'0001
	st	AL,@H'fff8
	ld	AL,@H'ffff
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	and	AL,#H'0002
	cmp	AL,#H'0000
	beq	?L132
	ld	X,@$XAP_AH
	add	X,#H'0002
	st	X,@H'fffc; addqi2+1/1 peephole
	bsr	$dofetch_X
	st	X,@H'fff9
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	and	AL,#H'000D
	cmp	AL,#H'0000
	beq	?L133
	st	AL,@H'ffff
	ld	AL,@H'fff9
	add	AL,#-H'0001
	st	AL,@H'fff9
	ld	AL,@H'ffff
?L133:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	X,@H'ffff
	ld	X,@$XAP_AL
	add	X,#H'0003
	st	X,@H'fff8
	ld	X,@H'ffff
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,@H'fff9
	bge	?L132
	bsr	$dostore_fff9
?L132:
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	cmp	AH,#hwrd(H'0001+H'3B9AC9FF)
	bcs	?L135
	bne	?L243
	cmp	AL,#lwrd(H'0001+H'3B9AC9FF)
	bcs	?L135
?L243:
	ld	AL,#H'000A
	bra	(?L238)
?L135:
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	cmp	AH,#hwrd(H'0001+H'5F5E0FF)
	bcs	?L137
	bne	?L244
	cmp	AL,#lwrd(H'0001+H'5F5E0FF)
	bcs	?L137
?L244:
	ld	AL,#H'0009
	bra	(?L238)
?L137:
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	cmp	AH,#hwrd(H'0001+H'98967F)
	bcs	?L139
	bne	?L245
	cmp	AL,#lwrd(H'0001+H'98967F)
	bcs	?L139
?L245:
	ld	AL,#H'0008
	bra	(?L238)
?L139:
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	cmp	AH,#hwrd(H'0001+H'F423F)
	bcs	?L141
	bne	?L246
	cmp	AL,#lwrd(H'0001+H'F423F)
	bcs	?L141
?L246:
	ld	AL,#H'0007
	bra	(?L238)
?L141:
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	cmp	AH,#hwrd(H'0001+H'1869F)
	bcs	?L143
	bne	?L247
	cmp	AL,#lwrd(H'0001+H'1869F)
	bcs	?L143
?L247:
	ld	AL,#H'0006
	bra	(?L238)
?L143:
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	cmp	AH,#hwrd(H'0001+H'270F)
	bcs	?L145
	bne	?L248
	cmp	AL,#lwrd(H'0001+H'270F)
	bcs	?L145
?L248:
	ld	AL,#H'0005
	bra	(?L238)
?L145:
	ld	AL,@(H'0001,Y)
	cmp	AL,#H'03E7
	bcz	?L147
	ld	X,#H'0004
	bra	(?L237)
?L147:
	ld	AL,@(H'0001,Y)
	cmp	AL,#H'0063
	bcz	?L149
	ld	AH,#H'0003
	bra	(?L236)
?L149:
	ld	AL,@(H'0001,Y)
	cmp	AL,#H'0009
	bcz	?L151
	ld	AL,#H'0002
?L238:
	st	AL,@(H'0002,Y)
	bra	(?L136)
?L151:
	ld	AL,@(H'0001,Y)
	cmp	AL,#H'0000
	beq	?L153
	ld	X,#H'0001
?L237:
	st	X,@(H'0002,Y)
	bra	(?L136)
?L153:
	ld	AH,#H'0000
?L236:
	st	AH,@(H'0002,Y)
?L136:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	ld	AH,#H'0003
	add	AH,@$XAP_AL
	st	AH,@H'fffc
	bsr	$dofetch_AL
	ld	X,@(H'0002,Y)
	cmp	X,@$XAP_AL
	bge	?L155
	st	AL,@(H'0002,Y)
?L155:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	X,@H'ffff
	ld	X,@$XAP_AL
	add	X,#H'0002
	st	X,@H'fff8
	ld	X,@H'ffff
	ld	X,@$XAP_AL
	add	X,#H'0002
	st	X,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AH
	sub	AH,@(H'0002,Y)
	add	AL,#H'0001
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	and	AL,#H'0005
	cmp	AL,#H'0000
	beq	?L156
	add	AH,#-H'0001
?L156:
	ld	X,@H'fff8
	st	X,@H'fffc
	bsr	$dostore_AH; movqi_fetch_general+2 peephole
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AH,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	ld	X,@$XAP_AH
	add	X,#H'0001
	st	X,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	and	AL,#H'0008
	cmp	AL,#H'0000
	beq	?L157
	ld	X,@$XAP_AH
	add	X,#H'0002
	st	X,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	ld	AL,#H'0020
	bsr	_printChar
?L157:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	AL,@H'fff8
	ld	AH,#H'0001
	add	AH,@$XAP_AL
	st	AH,@H'fffc
	bsr	$dofetch_AL
	cmp	AL,#H'0000
	blt	?L158
	and	AL,#H'0002
	cmp	AL,#H'0000
	beq	?L159
	ld	X,@H'fff8
	add	X,#H'0002
	st	X,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L158
?L163:
	ld	AL,#H'0030
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L163
	bra	(?L158)
?L159:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L158
?L168:
	ld	AL,#H'0020
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L168
?L158:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0001
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	and	AL,#H'0001
	cmp	AL,#H'0000
	beq	?L169
	ld	AL,#H'002D
	bra	(?L239)
?L169:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0001
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	and	AL,#H'0004
	cmp	AL,#H'0000
	beq	?L170
	ld	AL,#H'002B
?L239:
	bsr	_printChar
?L170:
	ld	X,@(H'0002,Y)
	cmp	X,#(H'0001+H'0009)
	bcc	?L173
	add	X,#(?L224)
	st	X,@H'fffc
	bsr	$dofetch_AL
	ld	X,@$XAP_AL
	brxl
	.SEG	CONST
?L224:
	.CODE
?JT224:
	.SEG	CONST
	dc	lwrd(?L172-?JT224)
	dc	lwrd(?L218-?JT224)
	dc	lwrd(?L213-?JT224)
	dc	lwrd(?L208-?JT224)
	dc	lwrd(?L203-?JT224)
	dc	lwrd(?L198-?JT224)
	dc	lwrd(?L193-?JT224)
	dc	lwrd(?L188-?JT224)
	dc	lwrd(?L183-?JT224)
	dc	lwrd(?L178-?JT224)
	.CODE
?L173:
	ld	X,#H'0000
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	cmp	AH,#hwrd(H'0001+H'3B9AC9FF)
	bcs	?L233
	bne	?L264
	cmp	AL,#lwrd(H'0001+H'3B9AC9FF)
	bcs	?L233
?L264:
?L177:
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	add	AL,#H'3600
	addc	AH,#H'C465
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	add	X,#H'0001
	cmp	AH,#hwrd(H'0001+H'3B9AC9FF)
	bcs	?L265
	bne	?L177
	cmp	AL,#lwrd(H'0001+H'3B9AC9FF)
	bcc	?L177
?L265:
?L233:
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L178:
	ld	X,#-H'0001
?L179:
	add	X,#H'0001
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	add	AL,#H'1F00
	addc	AH,#H'FA0A
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	cmp	AH,#H'0000
	bpl	?L179
	add	AL,#H'E100
	addc	AH,#H'05F5
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L183:
	ld	X,#-H'0001
?L184:
	add	X,#H'0001
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	add	AL,#H'6980
	addc	AH,#H'FF67
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	cmp	AH,#H'0000
	bpl	?L184
	add	AL,#H'9680
	addc	AH,#H'0098
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L188:
	ld	X,#-H'0001
?L189:
	add	X,#H'0001
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	add	AL,#H'BDC0
	addc	AH,#H'FFF0
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	cmp	AH,#H'0000
	bpl	?L189
	add	AL,#H'4240
	addc	AH,#H'000F
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L193:
	ld	X,#-H'0001
?L194:
	add	X,#H'0001
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	add	AL,#H'7960
	addc	AH,#H'FFFE
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	cmp	AH,#H'0000
	bpl	?L194
	add	AL,#H'86A0
	addc	AH,#H'0001
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L198:
	ld	X,#-H'0001
?L199:
	add	X,#H'0001
	ld	AH,@(0,Y)
	ld	AL,@(1,Y)
	add	AL,#H'D8F0
	addc	AH,#H'FFFF
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	cmp	AH,#H'0000
	bpl	?L199
	add	AL,#H'2710
	addc	AH,#H'0000
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L203:
	ld	X,#-H'0001
	st	AL,@H'ffff
	ld	AL,@(H'0001,Y)
	st	AL,@H'fff9
	ld	AL,@H'ffff
?L204:
	add	X,#H'0001
	ld	AL,#-H'03E8
	add	AL,@H'fff9
	st	AL,@H'fff9
	cmp	AL,#H'0000
	bge	?L204
	ld	AH,@H'fff9
	asr	#H'0010
	add	AL,#H'03E8
	addc	AH,#H'0000
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L208:
	ld	X,#-H'0001
	st	AL,@H'ffff
	ld	AL,@(H'0001,Y)
	st	AL,@H'fff9
	ld	AL,@H'ffff
?L209:
	add	X,#H'0001
	ld	AL,#-H'0064
	add	AL,@H'fff9
	st	AL,@H'fff9
	cmp	AL,#H'0000
	bge	?L209
	ld	AH,@H'fff9
	asr	#H'0010
	add	AL,#H'0064
	addc	AH,#H'0000
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L213:
	ld	X,#-H'0001
	st	AL,@H'ffff
	ld	AL,@(H'0001,Y)
	st	AL,@H'fff9
	ld	AL,@H'ffff
?L214:
	add	X,#H'0001
	ld	AL,#-H'000A
	add	AL,@H'fff9
	st	AL,@H'fff9
	cmp	AL,#H'0000
	bge	?L214
	ld	AH,@H'fff9
	asr	#H'0010
	add	AL,#H'000A
	addc	AH,#H'0000
	st	AH,@(0,Y)
	st	AL,@(1,Y)
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L218:
	ld	X,#-H'0001
	st	AL,@H'ffff
	ld	AL,@(H'0001,Y)
	st	AL,@H'fff9
	ld	AL,@H'ffff
?L219:
	add	X,#H'0001
	ld	AL,#-H'0001
	add	AL,@H'fff9
	st	AL,@H'fff9
	cmp	AL,#H'0000
	bge	?L219
	ld	AL,#H'0030
	add	AL,@$XAP_UXL
	bsr	_printChar
?L172:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	ble	?L235
?L228:
	ld	AL,#H'0020
	bsr	_printChar
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	ld	AL,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	add	AL,#H'0002
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	bsr	$dostore_AL
	cmp	AH,#H'0000
	bgt	?L228
?L235:
?LBE6:
?LBE_printUnsigned10:
	leavel	#5
;.stabn	192,0,0,?LBB6
;.stabn	224,0,0,?LBE6
;# begin scan referenced symbols
.IMPORT $_isdigit 0 ; (Non-const ref)
.IMPORT $_tolower 0 ; (Non-const ref)
.IMPORT $_isupper 0 ; (Non-const ref)
.IMPORT _printUnsigned16 0 ; (Non-const ref)
.IMPORT _printUnsigned8 0 ; (Non-const ref)
.IMPORT _printUnsigned10 0 ; (Non-const ref)
.IMPORT _printString 0 ; (Non-const ref)
;# end scan referenced symbols
$___print:
	enterl	#8
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB___print:
	st	AH,@(H'0005,Y)
	ld	AH,@$XAP_UY
	sub	AH,@^crt0.SHARED_STACK_LOW_LIMIT
	add	AH,#(^crt0.NATIVE_STACK_LOGICAL_ADDRESS + ^crt0.SHARED_STACK_COVER + ^crt0.SHARED_MMU_WORST_CASE_STACK)
?LBB7:
	ld	X,@(^crt0.SHARED_APP_GLOBALS_POS)
	st	AH,@($_info-^crt0.NATIVE_GLOBALS_LOGICAL_ADDRESS,X)
	st	AL,@(0,Y)
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(H'0004,Y)
	ld	AL,@H'ffff
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'0000
	beq	?L353
?L350:
?LBB8:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	ld	X,#H'0001
	add	X,@H'fffc
	st	X,@(H'0005,Y)
	cmp	AL,#H'0025
	bne	?L281
?LBB9:
	ld	AH,#H'0001
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(H'0001,Y)
	ld	AL,@H'ffff
?L295:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'002D
	bne	?L285
	ld	AL,@(H'0001,Y)
	or	AL,#-H'8000
	bra	(?L363)
?L285:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'002B
	bne	?L287
	ld	AL,@(H'0001,Y)
	or	AL,#H'0004
	bra	(?L360)
?L287:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'0030
	bne	?L289
	ld	AL,@(H'0001,Y)
	or	AL,#H'0002
?L363:
	st	AL,@(H'0001,Y)
	ld	AL,@H'fffc
	add	AL,#H'0001
	bra	(?L359)
?L289:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'0020
	bne	?L291
	ld	AL,@(H'0001,Y)
	or	AL,#H'0008
?L360:
	st	AL,@(H'0001,Y)
	ld	X,@H'fffc
	add	X,#H'0001
	st	X,@(H'0005,Y)
	bra	(?L282)
?L291:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'0023
	bne	?L293
	ld	AL,#H'0001
	add	AL,@H'fffc
?L359:
	st	AL,@(H'0005,Y)
	bra	(?L282)
?L293:
	ld	AH,#H'0000
?L282:
	cmp	AH,#H'0000
	bne	?L295
	ld	AL,@(H'0001,Y)
	cmp	AL,#H'0000
	bge	?L296
	and	AL,#-H'0003
	st	AL,@(H'0001,Y)
?L296:
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(H'0002,Y)
	ld	AL,@H'ffff
	bra	(?L297)
?L300:
	ld	AL,@(H'0002,Y)
	smult	#H'000A
	st	AL,@(H'0002,Y)
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AH; movqi_fetch_general+1 peephole
	add	AL,@$XAP_AH
	add	AL,#-H'0030
	st	AL,@(H'0002,Y)
	ld	X,@H'fffc
	add	X,#H'0001
	st	X,@(H'0005,Y)
?L297:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	bsr	$_isdigit
	cmp	AL,#H'0000
	bne	?L300
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'002A
	bne	?L301
	ld	AL,@(H'0008,Y)
	ld	AH,@$XAP_AL
	add	AH,#H'0001
	st	AH,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch_AL
	st	AL,@(H'0002,Y)
	ld	AL,@(H'0005,Y)
	add	AL,#H'0001
	st	AL,@(H'0005,Y)
?L301:
	ld	AL,@(H'0002,Y)
	cmp	AL,#H'0000
	bge	?L302
	nadd	AL,#H'0000
	st	AL,@(H'0002,Y)
	ld	AL,@(H'0001,Y)
	or	AL,#-H'8000
	st	AL,@(H'0001,Y)
?L302:
	st	AL,@H'ffff
	ld	AL,#H'0000
	st	AL,@(H'0003,Y)
	ld	AL,@H'ffff
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'002E
	bne	?L303
	ld	X,#H'0001
	add	X,@H'fffc
	st	X,@(H'0005,Y)
	bra	(?L304)
?L307:
	ld	AL,@(H'0001,Y)
	or	AL,#H'0020
	st	AL,@(H'0001,Y)
	ld	AL,@(H'0003,Y)
	smult	#H'000A
	st	AL,@(H'0003,Y)
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AH; movqi_fetch_general+1 peephole
	add	AL,@$XAP_AH
	add	AL,#-H'0030
	st	AL,@(H'0003,Y)
	ld	AH,@H'fffc
	add	AH,#H'0001
	st	AH,@(H'0005,Y)
?L304:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	bsr	$_isdigit
	cmp	AL,#H'0000
	bne	?L307
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'002A
	bne	?L303
	ld	AL,@(H'0008,Y)
	ld	X,@$XAP_AL
	add	X,#H'0001
	st	X,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch_AL
	st	AL,@(H'0003,Y)
	cmp	AL,#H'0000
	blt	?L309
	ld	AL,@(H'0001,Y)
	or	AL,#H'0020
	st	AL,@(H'0001,Y)
?L309:
	ld	AH,@(H'0005,Y)
	add	AH,#H'0001
	st	AH,@(H'0005,Y)
?L303:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	bsr	$_tolower
	cmp	AL,#H'0068
	beq	?L311
	cmp	AL,#H'006C
	beq	?L312
	bra	(?L310)
?L311:
	ld	AL,@(H'0005,Y)
	add	AL,#H'0001
	st	AL,@(H'0005,Y)
	bra	(?L310)
?L312:
	ld	AL,@(H'0001,Y)
	or	AL,#H'0040
	st	AL,@(H'0001,Y)
	ld	X,@(H'0005,Y)
	add	X,#H'0001
	st	X,@(H'0005,Y)
?L310:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	bsr	$_isupper
	cmp	AL,#H'0000
	beq	?L315
	ld	AL,@(H'0001,Y)
	or	AL,#H'0010
	st	AL,@(H'0001,Y)
?L315:
	ld	AL,@(H'0001,Y)
	and	AL,#H'0020
	cmp	AL,#H'0000
	bne	?L316
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'0073
	bne	?L317
	ld	AL,#H'7FFF
	bra	(?L318)
?L317:
	ld	AL,#H'0001
?L318:
	ld	AH,@$XAP_UY
	sub	AH,@(^crt0.SHARED_STACK_LOW_LIMIT)
	add	AH,#H'0003+^crt0.NATIVE_STACK_LOGICAL_ADDRESS + ^crt0.SHARED_STACK_COVER + ^crt0.SHARED_MMU_WORST_CASE_STACK
	st	AH,@H'fffc
	bsr	$dostore_AL
?L316:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	bsr	$_tolower
	add	AL,#-H'0063
	cmp	AL,#(H'0001+H'0015)
	bcc	?L347
	add	AL,#(?L348)
	st	AL,@H'fffc; addqi2+1/0 peephole
	bsr	$dofetch_AL
	ld	X,@$XAP_AL
	brxl
	.SEG	CONST
?L348:
	.CODE
?JT348:
	.SEG	CONST
	dc	lwrd(?L336-?JT348)
	dc	lwrd(?L331-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L331-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L324-?JT348)
	dc	lwrd(?L321-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L346-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L327-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L347-?JT348)
	dc	lwrd(?L321-?JT348)
	.CODE
?L321:
	ld	AL,@(H'0001,Y)
	and	AL,#H'0040
	cmp	AL,#H'0000
	beq	?L322
	ld	AL,@(H'0008,Y)
	ld	AH,@$XAP_AL
	add	AH,#H'0002
	st	AH,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch32_AH
	bra	(?L362)
?L322:
	ld	AL,@(H'0008,Y)
	ld	X,@$XAP_AL
	add	X,#H'0001
	st	X,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch_AL
	ld	AL,@$XAP_AL
	ld	AH,#H'0000
?L362:
	bsr	_printUnsigned16
	bra	(?L319)
?L324:
	ld	AL,@(H'0001,Y)
	and	AL,#H'0040
	cmp	AL,#H'0000
	beq	?L325
	ld	AL,@(H'0008,Y)
	ld	AH,@$XAP_AL
	add	AH,#H'0002
	st	AH,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch32_AH
	bra	(?L361)
?L325:
	ld	AL,@(H'0008,Y)
	ld	X,@$XAP_AL
	add	X,#H'0001
	st	X,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch_AL
	ld	AL,@$XAP_AL
	ld	AH,#H'0000
?L361:
	bsr	_printUnsigned8
	bra	(?L319)
?L327:
	ld	AL,@(H'0001,Y)
	ld	AH,@$XAP_AL
	and	AH,#-H'000D
	st	AH,@(H'0001,Y)
	and	AL,#H'0040
	cmp	AL,#H'0000
	beq	?L328
	ld	AL,@(H'0008,Y)
	ld	AH,@$XAP_AL
	add	AH,#H'0002
	st	AH,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch32_AH
	bra	(?L335)
?L328:
	ld	AL,@(H'0008,Y)
	ld	X,@$XAP_AL
	add	X,#H'0001
	st	X,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch_AL
	ld	AL,@$XAP_AL
	ld	AH,#H'0000
	bra	(?L335)
?L331:
?LBB10:
	ld	AL,@(H'0001,Y)
	and	AL,#H'0040
	cmp	AL,#H'0000
	beq	?L332
	ld	AL,@(H'0008,Y)
	ld	AH,@$XAP_AL
	add	AH,#H'0002
	st	AH,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch32_fff8
	bra	(?L333)
?L332:
	ld	AL,@(H'0008,Y)
	ld	X,@$XAP_AL
	add	X,#H'0001
	st	X,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch_X
	st	X,@H'fff8
	ld	AH,@H'fff8
	asr	#H'0010
	st	AH,@H'fff8
	st	AL,@H'fff9
?L333:
	ld	AH,@H'fff8
	ld	AL,@H'fff9
	cmp	AH,#H'0000
	bpl	?L334
	ld	AL,@(H'0001,Y)
	and	AL,#-H'000D
	or	AL,#H'0001
	st	AL,@(H'0001,Y)
?L334:
	ld	AH,@H'fff8
	ld	AL,@H'fff9
	cmp	AH,#H'0000
	bpl	?L335
	nadd	AL,#H'0000
	xor	AH,#H'FFFF
	addc	AH,#H'0000
?L335:
	bsr	_printUnsigned10
?LBE10:
	bra	(?L319)
?L336:
	ld	AH,@(H'0002,Y)
	ld	X,#-H'0001
	add	X,@$XAP_AH
	st	X,@(H'0002,Y)
	ld	AL,@(H'0001,Y)
	cmp	AL,#H'0000
	blt	?L337
	ld	AL,#-H'0002
	add	AL,@$XAP_AH
	st	AL,@(H'0002,Y)
	cmp	X,#H'0000
	ble	?L337
?L341:
	ld	AL,#H'0020
	bsr	_printChar
	ld	AL,@(H'0002,Y)
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	st	AL,@(H'0002,Y)
	cmp	AH,#H'0000
	bgt	?L341
?L337:
	ld	AL,@(H'0008,Y)
	ld	X,@$XAP_AL
	add	X,#H'0001
	st	X,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch_AL
	bsr	_printChar
	ld	AL,@(H'0002,Y)
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	st	AL,@(H'0002,Y)
	cmp	AH,#H'0000
	ble	?L319
?L345:
	ld	AL,#H'0020
	bsr	_printChar
	ld	AL,@(H'0002,Y)
	ld	AH,@$XAP_AL
	add	AL,#-H'0001
	st	AL,@(H'0002,Y)
	cmp	AH,#H'0000
	bgt	?L345
	bra	(?L319)
?L346:
	ld	AL,@(H'0008,Y)
	ld	AH,@$XAP_AL
	add	AH,#H'0001
	st	AH,@(H'0008,Y)
	st	AL,@H'fffc
	bsr	$dofetch_AL
	bsr	_printString
	bra	(?L319)
?L347:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	bsr	_printChar
?L319:
	ld	AL,@(H'0005,Y)
	add	AL,#H'0001
	st	AL,@(H'0005,Y)
?LBE9:
	bra	(?L278)
?L281:
	bsr	_printChar
?L278:
?LBE8:
	ld	X,@(H'0005,Y)
	st	X,@H'fffc
	bsr	$dofetch_AL; movqi_fetch_general+1 peephole
	cmp	AL,#H'0000
	bne	?L350
?L353:
?LBB11:
	ld	AH,@(0,Y)
	ld	AL,@$XAP_AH
	nadd	AL,#H'0000
	cmp	AL,#H'000F
	bcz	?L351
	st	AL,@H'ffff
	ld	AL,@$XAP_AH
	add	AL,@(H'0004,Y)
	st	AL,@H'fffc
	ld	AL,@H'ffff
	ld	AH,#H'0000
	bsr	$dostore_AH
?L351:
?LBE11:
	ld	AL,@(H'0004,Y)
?LBE7:
?LBE___print:
	leavel	#8
;.stabn	192,0,0,?LBB7
;.stabn	192,0,0,?LBB8
;.stabn	192,0,0,?LBB9
;.stabn	192,0,0,?LBB10
;.stabn	224,0,0,?LBE10
;.stabn	224,0,0,?LBE9
;.stabn	224,0,0,?LBE8
;.stabn	192,0,0,?LBB11
;.stabn	224,0,0,?LBE11
;.stabn	224,0,0,?LBE7
	.SEG	VAR
$_info:
	DS	1
	ENDMOD

;# Function pattern *movqi_set_rsvd_reg used[0] = 21 total = 21
;# Function pattern *movqi_fetch_general used[0] = 15 used[1] = 1 total = 16
;# Function pattern *movqi_store_y_relative used[0] = 61 used[1] = 4 total = 65
;# Function pattern *movqi_fetch_y_relative used[0] = 42 total = 42
;# Function pattern *movhi_fetch_y_relative used[0] = 13 total = 13
;# Function pattern *movhi_store_y_relative used[0] = 14 total = 14
;# Function pattern *movhi_fetch_general used[0] = 4 total = 4
;# Function pattern *movqi_store_general used[0] = 31 total = 31
;# Function pattern *movqi_fetch_symbol_ref used[0] = 44 total = 44
;# Function pattern *movqi_store_symbol_ref used[0] = 1 total = 1
;# Function pattern *movqi1 used[0] = 1 total = 1
;# Function pattern *movqi2 used[0] = 42 total = 42
;# Function pattern *movqi2b used[0] = 70 used[1] = 9 total = 79
;# Function pattern *movhi used[2] = 8 used[3] = 4 total = 12
;# Function pattern *addhi3 used[0] = 14 total = 14
;# Function pattern *addqi0 used[0] = 1 total = 1
;# Function pattern *addqi2 used[0] = 77 used[2] = 20 used[3] = 9 total = 106
;# Function pattern *andqi3 used[0] = 20 total = 20
;# Function pattern *iorqi3 used[0] = 10 total = 10
;# Function pattern *subqi3 used[0] = 4 total = 4
;# Function pattern *mulqi3_const used[0] = 4 total = 4
;# Function pattern *extendqihi2 used[1] = 4 total = 4
;# Function pattern *lshrhi3 used[0] = 6 total = 6
;# Function pattern negqi2 used[0] = 4 total = 4
;# Function pattern neghi2 used[0] = 1 total = 1
;# Function pattern *zero_extendqihi2 used[0] = 3 total = 3
;# Function pattern jump used[0] = 36 total = 36
;# Function pattern *call1 used[0] = 36 total = 36
;# Function pattern *call_value1 used[0] = 5 total = 5
;# Single pattern tablejump used = 2
;# Function pattern addsi3+1 used[0] = 27 total = 27
;# Function pattern addsi3+2 used[0] = 4 total = 4
;# Function pattern subhi3+1 used[0] = 46 used[1] = 1 total = 47
;# Function pattern addqi3-2 used[0] = 2 total = 2
;# Function pattern extendhfsf2+2 used[1] = 3 total = 3
;# Function pattern extendhfsf2+3 used[0] = 86 total = 86
;# Function pattern extendhfsf2+4 used[0] = 11 total = 11
;# Function pattern extendhfsf2+5 used[0] = 8 total = 8
;# Function pattern extendhfsf2+6 used[0] = 4 total = 4
	MODULE	isupper
	.LARGE
; Native execution
; GNU C version 3.3.3 (CSR version 30 for xapnative)
; 	compiled by GNU C version 3.2.3 (mingw special 20030504-1).
;# options passed: 
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/firmware
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/profiles/BlueLab6.2.0.64
;# -I.
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -iprefix -isystem -D__GNUC__=3 -D__GNUC_MINOR__=3
;# -D__GNUC_PATCHLEVEL__=3 -MD -MQ -mxap2-mode -menhanced-mode -mlarge-mode
;# -mbig-function-pointers -mleaf-optim -munderscore -ansi -auxbase-strip
;# -g -g -O -pedantic -Wall -Wmissing-prototypes -Wstrict-prototypes
;# -Wsign-compare -Wredundant-decls -Werror -Wall -W -Wmissing-prototypes
;# -Wstrict-prototypes -Wsign-compare -Wredundant-decls -Werror -ansi
;# -fno-builtin-memcpy
;# options enabled:  -fdefer-pop -fthread-jumps -fpeephole -ffunction-cse
;# -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm
;# -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
;# -fsched-interblock -fsched-spec -fbranch-count-reg -fcprop-registers
;# -fcommon -fgnu-linker -fargument-alias -fmerge-constants
;# -fzero-initialized-in-bss -fleading-underscore -fident
;# -fguess-branch-probability -fmath-errno -ftrapping-math -munderscore
;# -mpeephole -mxap2-mode -mlarge-mode -mquiet-mode
;# -minline-block-copy-mode -menhanced-mode -mload-cache-mode
;# -mbitfield-mode -mbig-function-pointers -mleaf-optim

	.ENHANCED
;# begin scan referenced symbols
;# end scan referenced symbols
	.CODE
$_isupper:
; leaf function with empty stack frame
?LBB_isupper:
	ld	AH,#H'0000
	add	AL,#-H'0041
	cmp	AL,#(H'0001+H'0019)
	bcc	?L2
	ld	AH,#H'0001
?L2:
	ld	AL,@$XAP_AH
?LBE_isupper:
	bra	0,X
	ENDMOD

;# Function pattern *movqi2 used[0] = 1 total = 1
;# Function pattern *movqi2b used[0] = 2 total = 2
;# Function pattern *addqi2 used[0] = 1 total = 1
;# Function pattern extendhfsf2+2 used[1] = 1 total = 1
	MODULE	isdigit
	.LARGE
; Native execution
; GNU C version 3.3.3 (CSR version 30 for xapnative)
; 	compiled by GNU C version 3.2.3 (mingw special 20030504-1).
;# options passed: 
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/firmware
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/profiles/BlueLab6.2.0.64
;# -I.
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -iprefix -isystem -D__GNUC__=3 -D__GNUC_MINOR__=3
;# -D__GNUC_PATCHLEVEL__=3 -MD -MQ -mxap2-mode -menhanced-mode -mlarge-mode
;# -mbig-function-pointers -mleaf-optim -munderscore -ansi -auxbase-strip
;# -g -g -O -pedantic -Wall -Wmissing-prototypes -Wstrict-prototypes
;# -Wsign-compare -Wredundant-decls -Werror -Wall -W -Wmissing-prototypes
;# -Wstrict-prototypes -Wsign-compare -Wredundant-decls -Werror -ansi
;# -fno-builtin-memcpy
;# options enabled:  -fdefer-pop -fthread-jumps -fpeephole -ffunction-cse
;# -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm
;# -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
;# -fsched-interblock -fsched-spec -fbranch-count-reg -fcprop-registers
;# -fcommon -fgnu-linker -fargument-alias -fmerge-constants
;# -fzero-initialized-in-bss -fleading-underscore -fident
;# -fguess-branch-probability -fmath-errno -ftrapping-math -munderscore
;# -mpeephole -mxap2-mode -mlarge-mode -mquiet-mode
;# -minline-block-copy-mode -menhanced-mode -mload-cache-mode
;# -mbitfield-mode -mbig-function-pointers -mleaf-optim

	.ENHANCED
;# begin scan referenced symbols
;# end scan referenced symbols
	.CODE
$_isdigit:
; leaf function with empty stack frame
?LBB_isdigit:
	ld	AH,#H'0000
	add	AL,#-H'0030
	cmp	AL,#(H'0001+H'0009)
	bcc	?L2
	ld	AH,#H'0001
?L2:
	ld	AL,@$XAP_AH
?LBE_isdigit:
	bra	0,X
	ENDMOD

;# Function pattern *movqi2 used[0] = 1 total = 1
;# Function pattern *movqi2b used[0] = 2 total = 2
;# Function pattern *addqi2 used[0] = 1 total = 1
;# Function pattern extendhfsf2+2 used[1] = 1 total = 1
	MODULE	tolower
	.LARGE
; Native execution
; GNU C version 3.3.3 (CSR version 30 for xapnative)
; 	compiled by GNU C version 3.2.3 (mingw special 20030504-1).
;# options passed: 
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/firmware
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/profiles/BlueLab6.2.0.64
;# -I.
;# -IC:/work/p4/bc/bluelab62/result/x86win32/image/bluelab_full/tools/include/standard
;# -iprefix -isystem -D__GNUC__=3 -D__GNUC_MINOR__=3
;# -D__GNUC_PATCHLEVEL__=3 -MD -MQ -mxap2-mode -menhanced-mode -mlarge-mode
;# -mbig-function-pointers -mleaf-optim -munderscore -ansi -auxbase-strip
;# -g -g -O -pedantic -Wall -Wmissing-prototypes -Wstrict-prototypes
;# -Wsign-compare -Wredundant-decls -Werror -Wall -W -Wmissing-prototypes
;# -Wstrict-prototypes -Wsign-compare -Wredundant-decls -Werror -ansi
;# -fno-builtin-memcpy
;# options enabled:  -fdefer-pop -fthread-jumps -fpeephole -ffunction-cse
;# -fkeep-static-consts -fpcc-struct-return -fgcse-lm -fgcse-sm
;# -floop-optimize -fcrossjumping -fif-conversion -fif-conversion2
;# -fsched-interblock -fsched-spec -fbranch-count-reg -fcprop-registers
;# -fcommon -fgnu-linker -fargument-alias -fmerge-constants
;# -fzero-initialized-in-bss -fleading-underscore -fident
;# -fguess-branch-probability -fmath-errno -ftrapping-math -munderscore
;# -mpeephole -mxap2-mode -mlarge-mode -mquiet-mode
;# -minline-block-copy-mode -menhanced-mode -mload-cache-mode
;# -mbitfield-mode -mbig-function-pointers -mleaf-optim

	.ENHANCED
;# begin scan referenced symbols
.IMPORT $_isupper 0 ; (Non-const ref)
;# end scan referenced symbols
	.CODE
$_tolower:
	enterl	#3
	bsr	$stack_overflow_check   ; Inserted for native exec
?LBB_tolower:
	st	AL,@(0,Y)
	bsr	$_isupper
	cmp	AL,#H'0000
	beq	?L2
	ld	AL,@(0,Y)
	add	AL,#H'0020
	st	AL,@(0,Y)
?L2:
	ld	AL,@(0,Y)
?LBE_tolower:
	leavel	#3
	ENDMOD

;# Function pattern *movqi_store_y_relative used[0] = 2 total = 2
;# Function pattern *movqi_fetch_y_relative used[0] = 1 total = 1
;# Function pattern *movqi2 used[0] = 1 total = 1
;# Function pattern *addqi2 used[0] = 1 total = 1
;# Function pattern *call_value1 used[0] = 1 total = 1
;# Function pattern extendhfsf2+3 used[0] = 1 total = 1