; generated by Component: ARM Compiler 5.05 update 1 (build 106) Tool: ArmCC [4d0efa]
; commandline ArmCC [--c99 --list --split_sections --debug -c --asm --interleave -o..\output\iap_readuid.o --asm_dir=..\List\ --list_dir=..\List\ --depend=..\output\iap_readuid.d --cpu=Cortex-M0+ --apcs=interwork --diag_suppress=9931 -I..\FWLib\SC32F1XXX_Lib\inc -I..\User\HeadFiles -I..\User -I..\Drivers -I..\Apps -I..\CMSIS -ID:\Keil5\ARM\Pack\Keil\SC32F10xx_DFP\1.0.0\Device\SC32F10xx\FWLib\SC32_Lib\inc -ID:\Keil5\ARM\Pack\Keil\SC32F10xx_DFP\1.0.0\Device\SH32F2xx\Include -D__UVISION_VERSION=538 -DSC32F10xx --omf_browse=..\output\iap_readuid.crf ..\Apps\IAP_ReadUID.c]
                          THUMB

                          AREA ||i.IAP_ReadUID_Example||, CODE, READONLY, ALIGN=2

                          REQUIRE _printf_percent
                          REQUIRE _printf_d
                          REQUIRE _printf_x
                          REQUIRE _printf_int_dec
                          REQUIRE _printf_longlong_hex
                  IAP_ReadUID_Example PROC
;;;13     
;;;14     void IAP_ReadUID_Example(void)
000000  b086              SUB      sp,sp,#0x18
;;;15     {
;;;16     	volatile uint8_t UIDcnt=0,i;
000002  2500              MOVS     r5,#0
000004  4669              MOV      r1,sp
000006  740d              STRB     r5,[r1,#0x10]
;;;17     	uint32_t UIDArray[3];
;;;18     	UIDcnt =IAP_ReadWordArray(0x08C00460,UIDArray,3);//IAP
000008  2203              MOVS     r2,#3
00000a  a901              ADD      r1,sp,#4
00000c  480c              LDR      r0,|L1.64|
00000e  f7fffffe          BL       IAP_ReadWordArray
000012  4669              MOV      r1,sp
000014  7408              STRB     r0,[r1,#0x10]
000016  ac01              ADD      r4,sp,#4              ;17
                  |L1.24|
;;;19     	
;;;20     	while(1)
;;;21     	{
;;;22     		if(UIDcnt == 3)//ɹ3
000018  7c08              LDRB     r0,[r1,#0x10]
00001a  2803              CMP      r0,#3
00001c  d1fc              BNE      |L1.24|
;;;23     		{
;;;24     			for(i=0;i<3;i++)
00001e  700d              STRB     r5,[r1,#0]
000020  e00a              B        |L1.56|
                  |L1.34|
;;;25     			{
;;;26     				printf("UIDArray[%d] = 0x%x \r\n",i,UIDArray[i]);
000022  7808              LDRB     r0,[r1,#0]
000024  7809              LDRB     r1,[r1,#0]
000026  0080              LSLS     r0,r0,#2
000028  5822              LDR      r2,[r4,r0]
00002a  a006              ADR      r0,|L1.68|
00002c  f7fffffe          BL       __2printf
000030  4669              MOV      r1,sp                 ;24
000032  7808              LDRB     r0,[r1,#0]            ;24
000034  1c40              ADDS     r0,r0,#1              ;24
000036  7008              STRB     r0,[r1,#0]            ;24
                  |L1.56|
000038  7808              LDRB     r0,[r1,#0]            ;24
00003a  2803              CMP      r0,#3                 ;24
00003c  d2ec              BCS      |L1.24|
00003e  e7f0              B        |L1.34|
;;;27     			}
;;;28     		}
;;;29       }
;;;30     }
;;;31     
                          ENDP

                  |L1.64|
                          DCD      0x08c00460
                  |L1.68|
000044  55494441          DCB      "UIDArray[%d] = 0x%x \r\n",0
000048  72726179
00004c  5b25645d
000050  203d2030
000054  78257820
000058  0d0a00  
00005b  00                DCB      0

;*** Start embedded assembler ***

#line 1 "..\\Apps\\IAP_ReadUID.c"
	AREA ||.rev16_text||, CODE
	THUMB
	EXPORT |__asm___13_IAP_ReadUID_c_9e6b5e97____REV16|
#line 463 "..\\CMSIS\\cmsis_armcc.h"
|__asm___13_IAP_ReadUID_c_9e6b5e97____REV16| PROC
#line 464

 rev16 r0, r0
 bx lr
	ENDP
	AREA ||.revsh_text||, CODE
	THUMB
	EXPORT |__asm___13_IAP_ReadUID_c_9e6b5e97____REVSH|
#line 478
|__asm___13_IAP_ReadUID_c_9e6b5e97____REVSH| PROC
#line 479

 revsh r0, r0
 bx lr
	ENDP

;*** End   embedded assembler ***
