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

📄 lcdpm444_16.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\lcdpm444_16.o --depend=.\Obj\lcdpm444_16.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\ConvertColor\LCDPM444_16.c]
                          THUMB

                          AREA ||i.LCD_Color2Index_M444_16||, CODE, READONLY, ALIGN=1

                  LCD_Color2Index_M444_16 PROC
;;;33     */
;;;34     unsigned LCD_Color2Index_M444_16(LCD_COLOR Color) {
000000  b2c3              UXTB     r3,r0
;;;35       unsigned int r,g,b;
;;;36       r = Color         & 255;
;;;37       g = (Color >> 8)  & 255;
000002  f3c02107          UBFX     r1,r0,#8,#8
;;;38       b = (Color >> 16) & 255;
000006  f3c04207          UBFX     r2,r0,#16,#8
;;;39       r = (r + 8) / 17;
00000a  2011              MOVS     r0,#0x11
00000c  3308              ADDS     r3,r3,#8
;;;40       g = (g + 8) / 17;
00000e  3108              ADDS     r1,r1,#8
000010  fbb3f3f0          UDIV     r3,r3,r0              ;39
000014  fbb1f1f0          UDIV     r1,r1,r0
;;;41       b = (b + 8) / 17;
000018  3208              ADDS     r2,r2,#8
00001a  fbb2f0f0          UDIV     r0,r2,r0
;;;42       return (b << 1) + (g << 6) + (r << 11);
00001e  0040              LSLS     r0,r0,#1
000020  eb001081          ADD      r0,r0,r1,LSL #6
000024  eb0020c3          ADD      r0,r0,r3,LSL #11
;;;43     }
000028  4770              BX       lr
;;;44     
                          ENDP


                          AREA ||i.LCD_GetIndexMask_M444_16||, CODE, READONLY, ALIGN=1

                  LCD_GetIndexMask_M444_16 PROC
;;;65     */
;;;66     unsigned LCD_GetIndexMask_M444_16(void) {
000000  f64730de          MOV      r0,#0x7bde
;;;67       return 0x7bde;
;;;68     }
000004  4770              BX       lr
;;;69     
                          ENDP


                          AREA ||i.LCD_Index2Color_M444_16||, CODE, READONLY, ALIGN=1

                  LCD_Index2Color_M444_16 PROC
;;;48     */
;;;49     LCD_COLOR LCD_Index2Color_M444_16(int Index) {
000000  f3c00243          UBFX     r2,r0,#1,#4
;;;50       unsigned int r,g,b;
;;;51       /* Separate the color masks */
;;;52       b = (Index >> 1) & 0xf;
;;;53       g = (Index >> 6) & 0xf;
000004  f3c01183          UBFX     r1,r0,#6,#4
;;;54       r = ((unsigned)Index >> 11) & 0xf;
000008  f3c020c3          UBFX     r0,r0,#11,#4
;;;55       /* Convert the color masks */
;;;56       r = r * 17;
00000c  eb001000          ADD      r0,r0,r0,LSL #4
;;;57       g = g * 17;
000010  eb011101          ADD      r1,r1,r1,LSL #4
;;;58       b = b * 17;
000014  eb021202          ADD      r2,r2,r2,LSL #4
;;;59       return r + (g<<8) + (((U32)b)<<16);
000018  eb002001          ADD      r0,r0,r1,LSL #8
00001c  eb004002          ADD      r0,r0,r2,LSL #16
;;;60     }
000020  4770              BX       lr
;;;61     
                          ENDP

⌨️ 快捷键说明

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