📄 gui_sif.txt
字号:
; generated by ARM C/C++ Compiler with , RVCT4.0 [Build 524] for uVision
; commandline ArmCC [--split_sections --debug -c --asm --interleave -o.\Obj\gui_sif.o --depend=.\Obj\gui_sif.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\Core\GUI_SIF.c]
THUMB
AREA ||i.GUI_SIF_CreateFont||, CODE, READONLY, ALIGN=2
GUI_SIF_CreateFont PROC
;;;32 */
;;;33 void GUI_SIF_CreateFont(void * pFontData, GUI_FONT * pFont, const GUI_SIF_TYPE * pFontType) {
000000 b538 PUSH {r3-r5,lr}
;;;34 const U8 * pSrc = (const U8 *)pFontData;
;;;35 U32 ID;
;;;36 /* Set pFontData of GUI_FONT structure to the first byte */
;;;37 pFont->p.pFontData = pFontData;
000002 9000 STR r0,[sp,#0]
;;;38 /* Check ID */
;;;39 ID = GUI__Read32(&pSrc);
000004 6188 STR r0,[r1,#0x18]
000006 460c MOV r4,r1 ;33
000008 4615 MOV r5,r2 ;33
00000a 4668 MOV r0,sp
00000c f7fffffe BL GUI__Read32
;;;40 if (ID != 0x50495547) { /* 'GUIP' */
000010 4913 LDR r1,|L1.96|
000012 4288 CMP r0,r1
000014 d123 BNE |L1.94|
;;;41 GUI_DEBUG_ERROROUT("ID of downloaded font wrong!");
;;;42 return;
;;;43 }
;;;44 /* Read properties of the font */
;;;45 pFont->YSize = GUI__Read16(&pSrc);
000016 4668 MOV r0,sp
000018 f7fffffe BL GUI__Read16
00001c 7520 STRB r0,[r4,#0x14]
;;;46 pFont->YDist = GUI__Read16(&pSrc);
00001e 4668 MOV r0,sp
000020 f7fffffe BL GUI__Read16
000024 7560 STRB r0,[r4,#0x15]
;;;47 pFont->Baseline = GUI__Read16(&pSrc);
000026 4668 MOV r0,sp
000028 f7fffffe BL GUI__Read16
00002c 7720 STRB r0,[r4,#0x1c]
;;;48 pFont->LHeight = GUI__Read16(&pSrc);
00002e 4668 MOV r0,sp
000030 f7fffffe BL GUI__Read16
000034 7760 STRB r0,[r4,#0x1d]
;;;49 pFont->CHeight = GUI__Read16(&pSrc);
000036 4668 MOV r0,sp
000038 f7fffffe BL GUI__Read16
00003c 77a0 STRB r0,[r4,#0x1e]
;;;50 /* Magnification is always 1 */
;;;51 pFont->XMag = 1;
00003e 2001 MOVS r0,#1
000040 75a0 STRB r0,[r4,#0x16]
;;;52 pFont->YMag = 1;
000042 75e0 STRB r0,[r4,#0x17]
;;;53 /* Set function pointers */
;;;54 pFont->pfDispChar = pFontType->pDispChar;
000044 6828 LDR r0,[r5,#0]
;;;55 pFont->pfGetCharDistX = pFontType->pGetCharDistX;
000046 6020 STR r0,[r4,#0]
000048 6868 LDR r0,[r5,#4]
;;;56 pFont->pfGetFontInfo = pFontType->pGetFontInfo;
00004a 6060 STR r0,[r4,#4]
00004c 68a8 LDR r0,[r5,#8]
;;;57 pFont->pfIsInFont = pFontType->pIsInFont;
00004e 60a0 STR r0,[r4,#8]
000050 68e8 LDR r0,[r5,#0xc]
;;;58 pFont->pafEncode = 0;
000052 60e0 STR r0,[r4,#0xc]
000054 2000 MOVS r0,#0
;;;59 /* Use the new font */
;;;60 GUI_SetFont(pFont);
000056 6120 STR r0,[r4,#0x10]
000058 4620 MOV r0,r4
00005a f7fffffe BL GUI_SetFont
|L1.94|
;;;61 }
00005e bd38 POP {r3-r5,pc}
;;;62
ENDP
|L1.96|
DCD 0x50495547
AREA ||i.GUI_SIF_DeleteFont||, CODE, READONLY, ALIGN=1
GUI_SIF_DeleteFont PROC
;;;66 */
;;;67 void GUI_SIF_DeleteFont(GUI_FONT * pFont) {
000000 4770 BX lr
;;;68 GUI_USE_PARA(pFont);
;;;69 }
ENDP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -