; generated by Component: ARM Compiler 5.06 update 7 (build 960) Tool: ArmCC [4d365d]
; 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 -IF:\Users\SOC\AppData\Local\Arm\Packs\ARM\CMSIS\5.8.0\Device\ARM\ARMCM0plus\Include -D__UVISION_VERSION=536 -DARMCM0P -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  b50e              PUSH     {r1-r3,lr}
;;;15     {
;;;16       uint8_t UIDcnt=0,i;
;;;17       uint32_t UIDArray[3];
;;;18       UIDcnt =IAP_ReadWordArray(0x08C00460,UIDArray,3);//IAP批量读
000002  2203              MOVS     r2,#3
000004  4669              MOV      r1,sp
000006  4809              LDR      r0,|L1.44|
000008  f7fffffe          BL       IAP_ReadWordArray
00000c  b2c6              UXTB     r6,r0
00000e  466d              MOV      r5,sp                 ;17
                  |L1.16|
;;;19       
;;;20       while(1)
;;;21       {
;;;22         if(UIDcnt == 3)//成功读出3个数据
000010  2e03              CMP      r6,#3
000012  d1fd              BNE      |L1.16|
;;;23         {
;;;24           for(i=0;i<3;i++)
000014  2400              MOVS     r4,#0
                  |L1.22|
;;;25           {
;;;26             printf("UIDArray[%d] = 0x%x \r\n",i,UIDArray[i]);
000016  00a0              LSLS     r0,r4,#2
000018  582a              LDR      r2,[r5,r0]
00001a  4621              MOV      r1,r4
00001c  a004              ADR      r0,|L1.48|
00001e  f7fffffe          BL       __2printf
000022  1c64              ADDS     r4,r4,#1
000024  b2e4              UXTB     r4,r4                 ;24
000026  2c03              CMP      r4,#3                 ;24
000028  d3f5              BCC      |L1.22|
00002a  e7f1              B        |L1.16|
;;;27           }
;;;28         }
;;;29       }
;;;30     }
;;;31     
                          ENDP

                  |L1.44|
                          DCD      0x08c00460
                  |L1.48|
000030  55494441          DCB      "UIDArray[%d] = 0x%x \r\n",0
000034  72726179
000038  5b25645d
00003c  203d2030
000040  78257820
000044  0d0a00  
000047  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 ***
