📄 txt_display.lst
字号:
C51 COMPILER V7.50 TXT_DISPLAY 08/18/2008 13:49:10 PAGE 1
C51 COMPILER V7.50, COMPILATION OF MODULE TXT_DISPLAY
OBJECT MODULE PLACED IN ..\output\output_bin\output_ebook\txt_display.obj
COMPILER INVOKED BY: C:\Keil\C51\BIN\C51.EXE ..\..\code\ap_ebook\src\txt_display.c LARGE OPTIMIZE(9,SIZE) BROWSE INCDIR(
-..\..\..\bsp\include;..\..\code\ap_ebook\src\include;..\..\code\global;..\..\code\include) DEFINE(CONFIG_ASIC,dynamic_lo
-ad) DEBUG OBJECTEXTEND PRINT(..\output\output_bin\output_ebook\txt_display.lst) OBJECT(..\output\output_bin\output_ebook
-\txt_display.obj)
line level source
1 /************************
2 * mp3_display.c
3 ************************/
4
5 #include <string.h>
6 #include "api.h"
7 #include "lcd.h"
8 #include "common.h"
9 #include "display.h"
10 #include "file_brower.h"
11 //#include "mp3_main.h"
12 //#include "lrc_parse.h"
13 #include "txt_display.h"
14 #include "txt_utile.h"
15 #include "res.h"
16 #include "res_show.h"
17 #include "ap_common.h"
18 #include "ui_main.h"
19 #include "prefer.h"
20
21 #define PROGRESS_Y 24
22 #define PROGRESS_X 4
23 #define FILE_NAME_X 2
24 #define FILE_NAME_Y 95
25
26 extern UINT8 Outputdata[512];
27 extern UINT8 decoderdata1[720];
28 //extern void lcd_clear1(void);
29
30 void lcd_puts1(UINT8 x, UINT8 y, UINT8 *str, UINT8 fontsize)
31 {
32 1 INT8S data r1;
33 1 UINT8 data n;
34 1
35 1 n = 0;
36 1 r1 = 0;
37 1
38 1 api_s8GetFont16x16BMP(0, TRUE);
39 1
40 1 while(*str != '\0') {
41 2 if(*str == '\n')
42 2 {
43 3 y-=16;
44 3 x = 0;
45 3 str++;
46 3 continue;
47 3 }
48 2 if(fontsize == FONTSIZE_8x8) {
49 3 if(lcd_putc_8x8(x, y, *str++)) {
50 4 x += 8;
51 4 n++;
52 4 }
C51 COMPILER V7.50 TXT_DISPLAY 08/18/2008 13:49:10 PAGE 2
53 3 }
54 2 else {
55 3 if((fontsize == FONTSIZE_8x16) ||
56 3 (fontsize == FONTSIZE_HYPER && r1 != 1 && *str <= 0x80)) {
57 4 if(lcd_putc_8x16(x, y, *str++)) {
58 5 x += 8;
59 5 n++;
60 5 }
61 4 continue;
62 4 }
63 3 r1 = api_s8GetFont16x16BMP(*str++, FALSE);
64 3 if(r1 == 0) {
65 4 if(lcd_putc_16x16(x, y, 0)) {
66 5 x += 16;
67 5 n += 2;
68 5 }
69 4 }
70 3 }
71 2
72 2
73 2 }
74 1 }
75
76
77 UINT8 show_one_page()
78 {
79 1 bg_color = 0x0;
80 1 gfx_set_bg(COLOR_UNSELECT);
81 1 fg_color = COLOR_WHITE;
82 1 lcd_clear();
83 1 if(tUserPreference.u8LanguageId==0 ||(tUserPreference.u8LanguageId>0 && tUserPreference.u8LanguageId<=4))
84 1 lcd_puts1(0, 144, decoderdata1, FONTSIZE_HYPER);
85 1 else
86 1 lcd_puts1(0, 144, decoderdata1, FONTSIZE_8x16);
87 1
88 1 return 1;
89 1 }
MODULE INFORMATION: STATIC OVERLAYABLE
CODE SIZE = 279 ----
CONSTANT SIZE = ---- ----
XDATA SIZE = ---- 6
PDATA SIZE = ---- ----
DATA SIZE = ---- 2
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 + -