⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 main.ls1

📁 通用OSD控制(51单片机控制的TFTLCD源码,MTV018)
💻 LS1
📖 第 1 页 / 共 3 页
字号:
                     215             PUBLIC  _disp_str
                     216             PUBLIC  _disp_char
                     217     
----                 218             RSEG  ?DT?_disp_str2?MAIN
0000                 219     ?_disp_str2?BYTE:
0000                 220             row?348:   DS   1
0001                 221             col?349:   DS   1
0002                 222             str?350:   DS   2
0004                 223           color?351:   DS   1
0005                 224             ORG  5
0005                 225               c?352:   DS   1
                     226     
----                 227             RSEG  ?DT?_reset_read?MAIN
0000                 228     ?_reset_read?BYTE:
0000                 229           addr?1381:   DS   1
                     230     
----                 231             RSEG  ?DT?_paint_line?MAIN
0000                 232     ?_paint_line?BYTE:
0000                 233             row?659:   DS   1
0001                 234             col?660:   DS   1
0002                 235           count?661:   DS   1
0003                 236           color?662:   DS   1
                     237     
----                 238             RSEG  ?DT?_reset_apply?MAIN
0000                 239     ?_reset_apply?BYTE:
0000                 240           val?25100:   DS   1
0001                 241             ORG  1
0001                 242             i?25101:   DS   1
0002                 243          item?25102:   DS   2
                     244     
----                 245             RSEG  ?DT?_reset_draw?MAIN
0000                 246     ?_reset_draw?BYTE:
0000                 247           row?30119:   DS   1
0001                 248           col?30120:   DS   1
0002                 249           val?30121:   DS   1
                     250     
----                 251             RSEG  ?DT?_reset_step?MAIN
0000                 252     ?_reset_step?BYTE:
0000                 253            inc?1993:   DS   1
                     254     
----                 255             RSEG  ?DT?main?MAIN
A51 MACRO ASSEMBLER  MAIN                                                                 01/02/2006 01:37:04 PAGE     5

0000                 256     ?main?BYTE:
0005                 257             ORG  5
0005                 258          item?35130:   DS   2
0000                 259             ORG  0
0000                 260            id?35131:   DS   1
0001                 261           val?35132:   DS   1
0002                 262     hide_expires?35133:   DS   1
0003                 263     video_expires?35134:   DS   1
0004                 264     powoff_expires?35135:   DS   1
                     265     
----                 266             RSEG  ?BI?main?MAIN
0000                 267     ?main?BIT:
0000                 268       sys_ind?35136:   DBIT   1
0001                 269       pin_off?35137:   DBIT   1
0002                 270       visible?35138:   DBIT   1
0003                 271     visiblemenu?35139:   DBIT   1
0004                 272     auto_powoff?35140:   DBIT   1
0005                 273      backflag?35141:   DBIT   1
                     274     
----                 275             RSEG  ?DT?_cont_draw?MAIN
0000                 276     ?_cont_draw?BYTE:
0000                 277            pb?27110:   DS   4
                     278     
----                 279             RSEG  ?DT?_bri_draw?MAIN
0000                 280     ?_bri_draw?BYTE:
0000                 281            pb?26106:   DS   4
                     282     
----                 283             RSEG  ?DT?_col_draw?MAIN
0000                 284     ?_col_draw?BYTE:
0000                 285            pb?28114:   DS   4
                     286     
----                 287             RSEG  ?DT?_tint_draw?MAIN
0000                 288     ?_tint_draw?BYTE:
0000                 289            pb?29118:   DS   4
                     290     
----                 291             RSEG  ?DT?_disp_str?MAIN
0000                 292     ?_disp_str?BYTE:
0000                 293             row?244:   DS   1
0001                 294             col?245:   DS   1
0002                 295             str?246:   DS   3
0005                 296             ORG  5
0005                 297               c?247:   DS   1
                     298     
----                 299             RSEG  ?DT?show_menu?MAIN
0000                 300     ?show_menu?BYTE:
0003                 301             ORG  3
0003                 302             c?31122:   DS   1
0000                 303             ORG  0
0000                 304             i?31123:   DS   1
0001                 305          item?31124:   DS   2
                     306     
----                 307             RSEG  ?DT?osd_init?MAIN
0000                 308     ?osd_init?BYTE:
0000                 309             i?34129:   DS   1
                     310     
----                 311             RSEG  ?DT?_draw_progbar?MAIN
0000                 312     ?_draw_progbar?BYTE:
0000                 313             row?865:   DS   1
0001                 314             col?866:   DS   1
0002                 315             ORG  2
0002                 316           range?868:   DS   1
0003                 317            step?869:   DS   1
0004                 318             pos?870:   DS   1
0005                 319               i?871:   DS   1
                     320     
----                 321             RSEG  ?DT?_simple_read?MAIN
A51 MACRO ASSEMBLER  MAIN                                                                 01/02/2006 01:37:04 PAGE     6

0000                 322     ?_simple_read?BYTE:
0000                 323              c?1483:   DS   1
                     324     
----                 325             RSEG  ?DT?_clear_line?MAIN
0000                 326     ?_clear_line?BYTE:
0000                 327             row?763:   DS   1
0001                 328             ORG  1
0001                 329             col?764:   DS   1
                     330     
----                 331             RSEG  ?DT?_select_item?MAIN
0000                 332     ?_select_item?BYTE:
0002                 333             ORG  2
0002                 334             c?32127:   DS   1
0000                 335             ORG  0
0000                 336          item?32128:   DS   2
                     337     
----                 338             RSEG  ?BI?_select_item?MAIN
0000                 339     ?_select_item?BIT:
0000                 340      selected?32126:   DBIT   1
                     341     
----                 342             RSEG  ?DT?MAIN
0000                 343         num_str?557:   DS   4
                     344     
----                 345             RSEG  ?BI?MAIN
0000                 346          PIN_SIGIND:   DBIT   1
                     347     
----                 348             RSEG  ?CO?MAIN
0000                 349     ?SC_0:
0000 42524947        350             DB  'B' ,'R' ,'I' ,'G' ,'H' ,'T' ,'N' ,'E' ,'S' ,'S' 
0004 48544E45                
0008 5353                    
000A 00              351             DB  000H
                     352     
000B                 353     ?SC_11:
000B 434F4E54        354             DB  'C' ,'O' ,'N' ,'T' ,'R' ,'A' ,'S' ,'T' ,000H
000F 52415354                
0013 00                      
                     355     
0014                 356     ?SC_20:
0014 434F4C4F        357             DB  'C' ,'O' ,'L' ,'O' ,'R' ,000H
0018 5200                    
                     358     
001A                 359     ?SC_26:
001A 54494E54        360             DB  'T' ,'I' ,'N' ,'T' ,000H
001E 00                      
                     361     
001F                 362     ?SC_31:
001F 52455345        363             DB  'R' ,'E' ,'S' ,'E' ,'T' ,000H
0023 5400                    
                     364     
0025                 365     items:
0025 0000     F      366             DW      ?SC_0    ; ptr2
0027 09              367             DB      009H
0028 03              368             DB      003H
0029 70              369             DB      070H
002A 0000     F      370             DW      _bri_read + 0
002C 0000     F      371             DW      _bri_step + 0
002E 0000     F      372             DW      _bri_apply + 0
0030 0000     F      373             DW      _bri_draw + 0
0032 0000     F      374             DW      ?SC_11   ; ptr2
0034 0A              375             DB      00AH
0035 03              376             DB      003H
0036 70              377             DB      070H
0037 0000     F      378             DW      _cont_read + 0
0039 0000     F      379             DW      _cont_step + 0
003B 0000     F      380             DW      _cont_apply + 0
A51 MACRO ASSEMBLER  MAIN                                                                 01/02/2006 01:37:04 PAGE     7

003D 0000     F      381             DW      _cont_draw + 0
003F 0000     F      382             DW      ?SC_20   ; ptr2
0041 0C              383             DB      00CH
0042 03              384             DB      003H
0043 9B              385             DB      09BH
0044 0000     F      386             DW      _col_read + 0
0046 0000     F      387             DW      _col_step + 0
0048 0000     F      388             DW      _col_apply + 0
004A 0000     F      389             DW      _col_draw + 0
004C 0000     F      390             DW      ?SC_26   ; ptr2
004E 0D              391             DB      00DH
004F 03              392             DB      003H
0050 A5              393             DB      0A5H
0051 0000     F      394             DW      _tint_read + 0
0053 0000     F      395             DW      _tint_step + 0
0055 0000     F      396             DW      _tint_apply + 0
0057 0000     F      397             DW      _tint_draw + 0
0059 0000     F      398             DW      ?SC_31   ; ptr2
005B FF              399             DB      0FFH
005C 00              400             DB      000H
005D 00              401             DB      000H
005E 0000     F      402             DW      _reset_read + 0
0060 0000     F      403             DW      _reset_step + 0
0062 0000     F      404             DW      _reset_apply + 0
0064 0000     F      405             DW      _reset_draw + 0
                     406     
                     407     
----                 408             RSEG  ?C_INITSEG
0000 C100     F      409             DB      0C1H, PIN_SIGIND + 000H ; bit-init
                     410     
                     411     ; #pragma REGISTERBANK(0)
                     412     ; 
                     413     ; #include <stdlib.h>
                     414     ; #include <reg52.h>
                     415     ; #include <intrins.h>
                     416     ; #include <string.h>
                     417     ; #include "def.h"
                     418     ; #include "key.h"
                     419     ; #include "at24c02.h"
                     420     ; #include "mtv130.h"
                     421     ; #include "timer.h"
                     422     ; #include "delay.h"
                     423     ; #include "def.h"
                     424     ; 
                     425     ; extern bit key_on;
                     426     ; extern unsigned char key_last;
                     427     ; extern void timer_init(void);
                     428     ; extern void i2c_init(void);
                     429     ; extern void mtv130_init(void);
                     430     ; extern void at24c02_init(void);
                     431     ; extern void key_init(void);

⌨️ 快捷键说明

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