📄 gui__intersectrects.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__intersectrects.o --depend=.\Obj\gui__intersectrects.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__IntersectRects.c]
THUMB
AREA ||i.GUI__IntersectRects||, CODE, READONLY, ALIGN=1
GUI__IntersectRects PROC
;;;53 */
;;;54 int GUI__IntersectRects(GUI_RECT* pDest, const GUI_RECT* pr0, const GUI_RECT* pr1) {
000000 b570 PUSH {r4-r6,lr}
;;;55 pDest->x0 = MAX (pr0->x0, pr1->x0);
000002 f9b15000 LDRSH r5,[r1,#0]
000006 f9b23000 LDRSH r3,[r2,#0]
00000a 429d CMP r5,r3
00000c dc00 BGT |L1.16|
00000e 461d MOV r5,r3
|L1.16|
000010 8005 STRH r5,[r0,#0]
;;;56 pDest->y0 = MAX (pr0->y0, pr1->y0);
000012 f9b13002 LDRSH r3,[r1,#2]
000016 f9b24002 LDRSH r4,[r2,#2]
00001a 42a3 CMP r3,r4
00001c dc00 BGT |L1.32|
00001e 4623 MOV r3,r4
|L1.32|
000020 8043 STRH r3,[r0,#2]
;;;57 pDest->x1 = MIN (pr0->x1, pr1->x1);
000022 f9b14004 LDRSH r4,[r1,#4]
000026 f9b26004 LDRSH r6,[r2,#4]
00002a 42b4 CMP r4,r6
00002c dd00 BLE |L1.48|
00002e 4634 MOV r4,r6
|L1.48|
000030 8084 STRH r4,[r0,#4]
;;;58 pDest->y1 = MIN (pr0->y1, pr1->y1);
000032 f9b11006 LDRSH r1,[r1,#6]
000036 f9b22006 LDRSH r2,[r2,#6]
00003a 4291 CMP r1,r2
00003c dd00 BLE |L1.64|
00003e 4611 MOV r1,r2
|L1.64|
000040 80c1 STRH r1,[r0,#6]
;;;59 if (pDest->x1 < pDest->x0) {
000042 42ac CMP r4,r5
000044 db01 BLT |L1.74|
;;;60 return 0;
;;;61 }
;;;62 if (pDest->y1 < pDest->y0) {
000046 4299 CMP r1,r3
000048 da01 BGE |L1.78|
|L1.74|
;;;63 return 0;
00004a 2000 MOVS r0,#0
;;;64 }
;;;65 return 1;
;;;66 }
00004c bd70 POP {r4-r6,pc}
|L1.78|
00004e 2001 MOVS r0,#1 ;65
000050 bd70 POP {r4-r6,pc}
;;;67
ENDP
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -