lcdp4.txt

来自「STM32F103ZET6+UCOSII+UCGUI源码」· 文本 代码 · 共 63 行

TXT
63
字号
; generated by ARM C/C++ Compiler with , RVCT4.0 [Build 524] for uVision
; commandline ArmCC [--split_sections --debug -c --asm --interleave -o.\Obj\lcdp4.o --depend=.\Obj\lcdp4.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\ConvertMono\LCDP4.c]
                          THUMB

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

                  LCD_Color2Index_4 PROC
;;;56     */
;;;57     unsigned LCD_Color2Index_4(LCD_COLOR Color) {
000000  f3c01103          UBFX     r1,r0,#4,#4
;;;58       int r,g,b;
;;;59       r = (Color>>(0+4))  &15;
;;;60       g = (Color>>(8+4))  &15;
000004  f3c03203          UBFX     r2,r0,#12,#4
;;;61       b = (Color>>(16+4)) &15;
000008  f3c05003          UBFX     r0,r0,#20,#4
;;;62       return (r+g+b+1) /3;
00000c  4411              ADD      r1,r1,r2
00000e  4408              ADD      r0,r0,r1
000010  1c40              ADDS     r0,r0,#1
000012  2103              MOVS     r1,#3
000014  fb90f0f1          SDIV     r0,r0,r1
;;;63     }
000018  4770              BX       lr
;;;64     
                          ENDP


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

                  LCD_GetIndexMask_4 PROC
;;;76     */
;;;77     unsigned LCD_GetIndexMask_4(void) {
000000  200f              MOVS     r0,#0xf
;;;78       return 0x0f;
;;;79     }
000002  4770              BX       lr
;;;80     
                          ENDP


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

                  LCD_Index2Color_4 PROC
;;;68     */
;;;69     LCD_COLOR LCD_Index2Color_4(int Index) {
000000  eb001100          ADD      r1,r0,r0,LSL #4
;;;70       return ((U32)Index)*0x111111;
000004  eb012000          ADD      r0,r1,r0,LSL #8
000008  eb003000          ADD      r0,r0,r0,LSL #12
;;;71     }
00000c  4770              BX       lr
;;;72     
                          ENDP


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

                  LCD_API_ColorConv_4
                          DCD      LCD_Color2Index_4
                          DCD      LCD_Index2Color_4
                          DCD      LCD_GetIndexMask_4

⌨️ 快捷键说明

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