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

📄 menu_default.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\menu_default.o --depend=.\Obj\menu_default.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\MENU_Default.c]
                          THUMB

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

                  MENU_GetDefaultBkColor PROC
;;;98     */
;;;99     GUI_COLOR MENU_GetDefaultBkColor(unsigned ColorIndex) {
000000  4601              MOV      r1,r0
;;;100      GUI_COLOR Color = GUI_INVALID_COLOR;
000002  f06f4070          MVN      r0,#0xf0000000
;;;101      if (ColorIndex <= GUI_COUNTOF(MENU__DefaultProps.aBkColor)) {
000006  2905              CMP      r1,#5
000008  d803              BHI      |L1.18|
;;;102        Color = MENU__DefaultProps.aBkColor[ColorIndex];
00000a  4802              LDR      r0,|L1.20|
00000c  eb000081          ADD      r0,r0,r1,LSL #2
000010  6940              LDR      r0,[r0,#0x14]
                  |L1.18|
;;;103      }
;;;104      return Color;
;;;105    }
000012  4770              BX       lr
;;;106    
                          ENDP

                  |L1.20|
                          DCD      MENU__DefaultProps

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

                  MENU_GetDefaultBorderSize PROC
;;;110    */
;;;111    U8 MENU_GetDefaultBorderSize(unsigned BorderIndex) {
000000  4601              MOV      r1,r0
;;;112      U8 BorderSize = 0;
000002  2000              MOVS     r0,#0
;;;113      if (BorderIndex <= GUI_COUNTOF(MENU__DefaultProps.aBorder)) {
000004  2904              CMP      r1,#4
000006  d803              BHI      |L2.16|
;;;114        BorderSize = MENU__DefaultProps.aBorder[BorderIndex];
000008  4802              LDR      r0,|L2.20|
00000a  4408              ADD      r0,r0,r1
00000c  f8900028          LDRB     r0,[r0,#0x28]
                  |L2.16|
;;;115      }
;;;116      return BorderSize;
;;;117    }
000010  4770              BX       lr
;;;118    
                          ENDP

000012  0000              DCW      0x0000
                  |L2.20|
                          DCD      MENU__DefaultProps

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

                  MENU_GetDefaultEffect PROC
;;;122    */
;;;123    const WIDGET_EFFECT* MENU_GetDefaultEffect(void) {
000000  4801              LDR      r0,|L3.8|
;;;124      return MENU__pDefaultEffect;
000002  6800              LDR      r0,[r0,#0]  ; MENU__pDefaultEffect
;;;125    }
000004  4770              BX       lr
;;;126    
                          ENDP

000006  0000              DCW      0x0000
                  |L3.8|
                          DCD      MENU__pDefaultEffect

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

                  MENU_GetDefaultFont PROC
;;;130    */
;;;131    const GUI_FONT GUI_UNI_PTR* MENU_GetDefaultFont(void) {
000000  4801              LDR      r0,|L4.8|
;;;132      return MENU__DefaultProps.pFont;
000002  6ac0              LDR      r0,[r0,#0x2c]  ; MENU__DefaultProps
;;;133    }
000004  4770              BX       lr
;;;134    
                          ENDP

000006  0000              DCW      0x0000
                  |L4.8|
                          DCD      MENU__DefaultProps

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

                  MENU_GetDefaultTextColor PROC
;;;86     */
;;;87     GUI_COLOR MENU_GetDefaultTextColor(unsigned ColorIndex) {
000000  4601              MOV      r1,r0
;;;88       GUI_COLOR Color = GUI_INVALID_COLOR;
000002  f06f4070          MVN      r0,#0xf0000000
;;;89       if (ColorIndex <= GUI_COUNTOF(MENU__DefaultProps.aTextColor)) {
000006  2905              CMP      r1,#5
000008  d802              BHI      |L5.16|
;;;90         Color = MENU__DefaultProps.aTextColor[ColorIndex];
00000a  4802              LDR      r0,|L5.20|
00000c  f8500021          LDR      r0,[r0,r1,LSL #2]
                  |L5.16|
;;;91       }
;;;92       return Color;
;;;93     }
000010  4770              BX       lr
;;;94     
                          ENDP

000012  0000              DCW      0x0000
                  |L5.20|
                          DCD      MENU__DefaultProps

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

                  MENU_SetDefaultBkColor PROC
;;;44     */
;;;45     void MENU_SetDefaultBkColor(unsigned ColorIndex, GUI_COLOR Color) {
000000  2805              CMP      r0,#5
;;;46       if (ColorIndex <= GUI_COUNTOF(MENU__DefaultProps.aBkColor)) {
000002  d803              BHI      |L6.12|
;;;47         MENU__DefaultProps.aBkColor[ColorIndex] = Color;
000004  4a02              LDR      r2,|L6.16|
000006  eb020080          ADD      r0,r2,r0,LSL #2
00000a  6141              STR      r1,[r0,#0x14]
                  |L6.12|
;;;48       }
;;;49     }
00000c  4770              BX       lr
;;;50     
                          ENDP

00000e  0000              DCW      0x0000
                  |L6.16|
                          DCD      MENU__DefaultProps

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

                  MENU_SetDefaultBorderSize PROC
;;;54     */
;;;55     void MENU_SetDefaultBorderSize(unsigned BorderIndex, U8 BorderSize) {
000000  2804              CMP      r0,#4
;;;56       if (BorderIndex <= GUI_COUNTOF(MENU__DefaultProps.aBorder)) {
000002  d803              BHI      |L7.12|
;;;57         MENU__DefaultProps.aBorder[BorderIndex] = BorderSize;
000004  4a02              LDR      r2,|L7.16|
000006  4410              ADD      r0,r0,r2
000008  f8801028          STRB     r1,[r0,#0x28]
                  |L7.12|
;;;58       }
;;;59     }
00000c  4770              BX       lr
;;;60     
                          ENDP

00000e  0000              DCW      0x0000
                  |L7.16|
                          DCD      MENU__DefaultProps

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

                  MENU_SetDefaultEffect PROC
;;;64     */
;;;65     void MENU_SetDefaultEffect(const WIDGET_EFFECT* pEffect) {
000000  4901              LDR      r1,|L8.8|
;;;66       MENU__pDefaultEffect = pEffect;
;;;67     }
000002  6008              STR      r0,[r1,#0]  ; MENU__pDefaultEffect
000004  4770              BX       lr
;;;68     
                          ENDP

000006  0000              DCW      0x0000
                  |L8.8|
                          DCD      MENU__pDefaultEffect

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

                  MENU_SetDefaultFont PROC
;;;72     */
;;;73     void MENU_SetDefaultFont(const GUI_FONT GUI_UNI_PTR* pFont) {
000000  4901              LDR      r1,|L9.8|
;;;74       MENU__DefaultProps.pFont = pFont;
;;;75     }
000002  62c8              STR      r0,[r1,#0x2c]  ; MENU__DefaultProps
000004  4770              BX       lr
;;;76     
                          ENDP

000006  0000              DCW      0x0000
                  |L9.8|
                          DCD      MENU__DefaultProps

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

                  MENU_SetDefaultTextColor PROC
;;;34     */
;;;35     void MENU_SetDefaultTextColor(unsigned ColorIndex, GUI_COLOR Color) {
000000  2805              CMP      r0,#5
;;;36       if (ColorIndex <= GUI_COUNTOF(MENU__DefaultProps.aTextColor)) {
000002  d802              BHI      |L10.10|
;;;37         MENU__DefaultProps.aTextColor[ColorIndex] = Color;
000004  4a01              LDR      r2,|L10.12|
000006  f8421020          STR      r1,[r2,r0,LSL #2]
                  |L10.10|
;;;38       }
;;;39     }
00000a  4770              BX       lr
;;;40     
                          ENDP

                  |L10.12|
                          DCD      MENU__DefaultProps

⌨️ 快捷键说明

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