📄 res_show.lst
字号:
C51 COMPILER V7.50 RES_SHOW 09/05/2008 09:53:59 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE RES_SHOW
OBJECT MODULE PLACED IN ..\output\output_bin\output_program\res_show.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\..\code\ap_main\src\res_show.c LARGE OPTIMIZE(9,SIZE) BROWSE INCDIR(..\.
-.\..\bsp\include;..\..\code\ap_main\src\include;..\..\code\global;..\..\code\include) DEFINE(CONFIG_ASIC,dynamic_load,FI
-RST) DEBUG OBJECTEXTEND PRINT(..\output\output_bin\output_program\res_show.lst) OBJECT(..\output\output_bin\output_progr
-am\res_show.obj)
line level source
1 #include <string.h>
2 #include "api.h"
3 #include "lcd.h"
4 #include "key.h"
5 #include "common.h"
6 #include "res_show.h"
7 #include "prefer.h"
8
9
10 #define IMAGE_OFFSET 268224L
11
12 RES_ENTRY_T res_entry;
13 extern UINT16 pixel_buf[];
14 extern void delay(UINT16 n);
15 INT8U res_buf[50];
16
17 BOOLEAN bResShowPic(INT16U id,INT8U x,INT8U y)
18 {
19 1 INT16U width,high,length;
20 1 INT16U count;
21 1 UINT16 pitch;
22 1 INT8U buf1[32];
23 1
24 1 api_bSectionFileOpen(SYS_IMAGE_FILEID);
25 1 api_bSectionFileSeek(id * sizeof(RES_ENTRY_T)+IMAGE_OFFSET, SEEK_SET);
26 1 api_u16SectionFileRead(buf1, sizeof(RES_ENTRY_T));
27 1 res_entry.u32Offset = (INT32U)buf1[0] | ((INT32U)buf1[1]<<8) | ((INT32U)buf1[2]<<16) | ((INT32U)buf1[3]<<
-24);
28 1 api_bSectionFileSeek(res_entry.u32Offset+IMAGE_OFFSET, SEEK_SET);
29 1 api_u16SectionFileRead(buf1,4);
30 1 width = buf1[0] | (buf1[1]<<8);
31 1 high = buf1[2] | (buf1[3]<<8);
32 1
33 1 lcd_set_disply_mode(0x00,0x22);
34 1
35 1 lcd_set_rw_area(x,y,(INT8U)width,(INT8U)high);
36 1 pitch = (UINT16)width*4;
37 1
38 1 length = width * high*2;
39 1
40 1 if(length<512)
41 1 {
42 2 api_u16SectionFileRead(pixel_buf,length);
43 2 lcd_put_data((UINT16)pixel_buf,length);
44 2 }
45 1 else
46 1 {
47 2 count = length/512;
48 2 while(count--)
49 2 {
50 3 api_u16SectionFileRead(pixel_buf,512);
51 3 lcd_put_data((UINT16)pixel_buf,512);
C51 COMPILER V7.50 RES_SHOW 09/05/2008 09:53:59 PAGE 2
52 3 }
53 2 pitch = length%512;
54 2 api_u16SectionFileRead(pixel_buf,pitch);
55 2 lcd_put_data((UINT16)pixel_buf,pitch);
56 2 }
57 1 return TRUE;
58 1 }
59
60
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 466 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = 66 46
PDATA SIZE = ---- ----
DATA SIZE = ---- ----
IDATA SIZE = ---- ----
BIT SIZE = ---- ----
END OF MODULE INFORMATION.
C51 COMPILATION COMPLETE. 0 WARNING(S), 0 ERROR(S)
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -