⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 checkbox_setnumstates.txt

📁 STM32F103ZET6+UCOSII+UCGUI源码
💻 TXT
字号:
; generated by ARM C/C++ Compiler with , RVCT4.0 [Build 524] for uVision
; commandline ArmCC [--split_sections --debug -c --asm --interleave -o.\Obj\checkbox_setnumstates.o --depend=.\Obj\checkbox_setnumstates.d --device=DARMSTM --apcs=interwork -O3 -I..\..\include -I..\..\..\FWLib\library\inc -I..\..\..\USBLib\library\inc -I..\..\Config -I..\..\GUI\Core -I..\..\GUI\Font -I..\..\GUI\ConvertColor -I..\..\GUI\AntiAlias -I..\..\GUI\ConvertMono -I..\..\GUI\JPEG -I..\..\GUI\MemDev -I..\..\GUI\MultiLayer -I..\..\GUI\Widget -I..\..\GUI\WM -IC:\Keil\ARM\INC\ST\STM32F10x ..\..\GUI\Widget\CHECKBOX_SetNumStates.c]
                          THUMB

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

                  CHECKBOX_SetNumStates PROC
;;;77     */
;;;78     void CHECKBOX_SetNumStates(CHECKBOX_Handle hObj, unsigned NumStates) {
000000  b570              PUSH     {r4-r6,lr}
;;;79       CHECKBOX_Obj * pObj;
;;;80       if (!CHECKBOX__DefaultProps.apBm[2]) {
000002  4d10              LDR      r5,|L1.68|
000004  4606              MOV      r6,r0                 ;78
000006  6a28              LDR      r0,[r5,#0x20]  ; CHECKBOX__DefaultProps
000008  460c              MOV      r4,r1                 ;78
00000a  b918              CBNZ     r0,|L1.20|
;;;81         CHECKBOX_SetDefaultImage(&_abmCheck[0], 2);
00000c  2102              MOVS     r1,#2
00000e  480e              LDR      r0,|L1.72|
000010  f7fffffe          BL       CHECKBOX_SetDefaultImage
                  |L1.20|
;;;82       }
;;;83       if (!CHECKBOX__DefaultProps.apBm[3]) {
000014  6a68              LDR      r0,[r5,#0x24]  ; CHECKBOX__DefaultProps
000016  b920              CBNZ     r0,|L1.34|
;;;84         CHECKBOX_SetDefaultImage(&_abmCheck[1], 3);
000018  480b              LDR      r0,|L1.72|
00001a  2103              MOVS     r1,#3
00001c  3014              ADDS     r0,r0,#0x14
00001e  f7fffffe          BL       CHECKBOX_SetDefaultImage
                  |L1.34|
;;;85       }
;;;86       if (hObj && ((NumStates == 2) || (NumStates == 3))) {
000022  2e00              CMP      r6,#0
000024  d00c              BEQ      |L1.64|
000026  2c02              CMP      r4,#2
000028  d001              BEQ      |L1.46|
00002a  2c03              CMP      r4,#3
00002c  d108              BNE      |L1.64|
                  |L1.46|
;;;87         WM_LOCK();
;;;88         pObj = CHECKBOX_H2P(hObj);
00002e  4630              MOV      r0,r6
000030  f7fffffe          BL       GUI_ALLOC_h2p
;;;89         pObj->Props.apBm[2] = CHECKBOX__DefaultProps.apBm[2];
000034  6a29              LDR      r1,[r5,#0x20]  ; CHECKBOX__DefaultProps
;;;90         pObj->Props.apBm[3] = CHECKBOX__DefaultProps.apBm[3];
000036  6481              STR      r1,[r0,#0x48]
000038  6a69              LDR      r1,[r5,#0x24]  ; CHECKBOX__DefaultProps
;;;91         pObj->NumStates = NumStates;
00003a  64c1              STR      r1,[r0,#0x4c]
00003c  f8804050          STRB     r4,[r0,#0x50]
                  |L1.64|
;;;92         WM_UNLOCK();
;;;93       }
;;;94     }
000040  bd70              POP      {r4-r6,pc}
;;;95     
                          ENDP

000042  0000              DCW      0x0000
                  |L1.68|
                          DCD      CHECKBOX__DefaultProps
                  |L1.72|
                          DCD      ||area_number.9||

                          AREA ||.constdata||, DATA, READONLY, ALIGN=2

                  _aColorDisabled
                          DCD      0x00101010
                          DCD      0x00808080

                          AREA ||area_number.5||, DATA, READONLY, ALIGN=2

                          EXPORTAS ||area_number.5||, ||.constdata||
                  _aColorEnabled
                          DCD      0x00000000
                          DCD      0x00ffffff

                          AREA ||area_number.6||, DATA, READONLY, ALIGN=2

                          EXPORTAS ||area_number.6||, ||.constdata||
                  _PalCheckDisabled
                          DCD      0x00000002
000004  00000000          DCB      0x00,0x00,0x00,0x00
                          DCD      _aColorDisabled

                          AREA ||area_number.7||, DATA, READONLY, ALIGN=2

                          EXPORTAS ||area_number.7||, ||.constdata||
                  _PalCheckEnabled
                          DCD      0x00000002
000004  00000000          DCB      0x00,0x00,0x00,0x00
                          DCD      _aColorEnabled

                          AREA ||area_number.8||, DATA, READONLY, ALIGN=0

                          EXPORTAS ||area_number.8||, ||.constdata||
                  _acCheck
000000  ffe0ffe0          DCB      0xff,0xe0,0xff,0xe0
000004  ff60fee0          DCB      0xff,0x60,0xfe,0xe0
000008  dd60eae0          DCB      0xdd,0x60,0xea,0xe0
00000c  d5e0ebe0          DCB      0xd5,0xe0,0xeb,0xe0
000010  f7e0ffe0          DCB      0xf7,0xe0,0xff,0xe0
000014  ffe0              DCB      0xff,0xe0

                          AREA ||area_number.9||, DATA, READONLY, ALIGN=2

                          EXPORTAS ||area_number.9||, ||.constdata||
                  _abmCheck
000000  000b000b          DCW      0x000b,0x000b
000004  00020001          DCW      0x0002,0x0001
                          DCD      _acCheck
                          DCD      _PalCheckDisabled
                          DCD      0x00000000
000014  000b000b          DCW      0x000b,0x000b
000018  00020001          DCW      0x0002,0x0001
                          DCD      _acCheck
                          DCD      _PalCheckEnabled
                          DCD      0x00000000

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -