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

📄 graphic.lst

📁 how to use display powertip PG 320x240
💻 LST
📖 第 1 页 / 共 4 页
字号:
               R   545           ?SYMB   '',$,96,2
                   546   ; Locals:
                   547   ;     i = offset 0
                   548   ;     Begin = offset 2
                   549   ;     SizeY = offset 8
                   550   ;     Color = offset 10
                   551   ;     SizeX = offset 6
                   552   ; 
                   553   ; Statics:
                   554   ; 
                   555   ; CSEs:
                   556   ; 
                   557           ?LINE   87
                   558           ?SYMB   'Begin',2,99,258
               R   559           ?SYMB   '0',$,101,2
                   560           ?SYMB   'SizeX',5,99,3
               R   561           ?SYMB   '4',$,101,5
                   562           ?SYMB   'SizeY',3,99,3
               R   563           ?SYMB   '6',$,101,3
                   564           ?SYMB   'Color',4,99,3
               R   565           ?SYMB   '8',$,101,4
                   566   ; graphic.c   88                unsigned int i;    
                   567           ?LINE   88
                   568           ?SYMB   'i',1,98,18
               R   569           ?SYMB   '-2',$,101,1
                   570   ; graphic.c   89                for (i=0; i< SizeY;i++)
                   571           ?LINE   89
0200 E00C          572           MOV     R12,#00h
0202 B8C0          573           MOV     [R0],R12
0204 0D1A          574           JMPR    cc_UC,_18
0206               575   _17:
                   576   ; graphic.c   90            {
                   577   ; graphic.c   91                        Begin.y ++;
                   578           ?LINE   91
0206 D4C00400      579           MOV     R12,[R0+#04H]
020A 08C1          580           ADD     R12,#01h
020C C4C00400      581           MOV     [R0+#04H],R12
                   582   ; graphic.c   92                        linex(Begin,SizeX,Color);       
                   583           ?LINE   92
0210 F4200A00      584           MOVB    RL1,[R0+#0AH]
0214 C02C          585           MOVBZ   R12,RL1
0216 88C0          586           MOV     [-R0],R12
               R   587           ?SYMB   '',$,96,4
0218 F4200800      588           MOVB    RL1,[R0+#08H]
021C C02C          589           MOVBZ   R12,RL1
021E 88C0          590           MOV     [-R0],R12
               R   591           ?SYMB   '',$,96,6
0220 D4C00600      592           MOV     R12,[R0+#06H]
0224 D4D00800      593           MOV     R13,[R0+#08H]
0228 88D0          594           MOV     [-R0],R13
               R   595           ?SYMB   '',$,96,8
022A 88C0          596           MOV     [-R0],R12
               R   597           ?SYMB   '',$,96,10
022C CA000000  R   598           CALLA   cc_UC,_linex
TASKING C166/ST10 assembler v8.0r1 Build 256 SN 00096962                    Date: Apr 23 2004  Time: 16:27:03  Page:  12
graphic

 LOC CODE        LINE   SOURCELINE

0230 06F00800      599           ADD     R0,#08h
               R   600           ?SYMB   '',$,96,2
                   601           ?LINE   89
0234 A8C0          602           MOV     R12,[R0]
0236 08C1          603           ADD     R12,#01h
0238 B8C0          604           MOV     [R0],R12
023A               605   _18:
023A A8C0          606           MOV     R12,[R0]
023C F4200800      607           MOVB    RL1,[R0+#08H]
0240 C02D          608           MOVBZ   R13,RL1
0242 40CD          609           CMP     R12,R13
0244 8DE0          610           JMPR    cc_ULT,_17
                   611   ; graphic.c   93            }
                   612   ; graphic.c   94        }       
                   613           ?LINE   94
               R   614           ?SYMB   '',$,102,1
               R   615           ?SYMB   '',$,102,4
               R   616           ?SYMB   '',$,102,3
               R   617           ?SYMB   '',$,102,5
               R   618           ?SYMB   '',$,102,2
0246 0802          619           ADD     R0,#02h
               R   620           ?SYMB   '',$,96,0
0248 CB00          621           RET
                   622   _rectangle      ENDP
               R   623           ?SYMB   '',$,17,94
                   624   ; graphic.c   95        //*********************************************************************
                         *********
                   625   ; graphic.c   96        
                   626   ; graphic.c   97        /*
                   627   ; graphic.c   98        void lcd_write_char(unsigned char Pismeno, unsigned char Color)
                   628   ; graphic.c   99        { 
                   629   ; graphic.c  100            switch (Pismeno)
                   630   ; graphic.c  101            {
                   631   ; graphic.c  102                case ' ':lcd_write(Address - 8,Color);
                   632   ; graphic.c  103                        lcd_write_data(0x00);lcd_write_data(0x00);
                   633   ; graphic.c  104                        lcd_write_data(0x00);lcd_write_data(0x00);
                   634   ; graphic.c  105                        lcd_write_data(0x00);lcd_write_data(0x00);break;
                   635   ; graphic.c  106                case 'A':lcd_write_data(0x7E);lcd_write_data(0x11);
                   636   ; graphic.c  107                        lcd_write_data(0x11);lcd_write_data(0x11);
                   637   ; graphic.c  108                        lcd_write_data(0x7E);lcd_write_data(0x00);break;
                   638   ; graphic.c  109                case 'B':lcd_write_data(0x7F);lcd_write_data(0x49);
                   639   ; graphic.c  110                        lcd_write_data(0x49);lcd_write_data(0x49);
                   640   ; graphic.c  111                        lcd_write_data(0x67);lcd_write_data(0x00);break;
                   641   ; graphic.c  112                case 'C':lcd_write_data(0x3E);lcd_write_data(0x41);
                   642   ; graphic.c  113                        lcd_write_data(0x41);lcd_write_data(0x41);
                   643   ; graphic.c  114                        lcd_write_data(0x22);lcd_write_data(0x00);break;
                   644   ; graphic.c  115                case 'D':lcd_write_data(0x7F);lcd_write_data(0x41);
                   645   ; graphic.c  116                        lcd_write_data(0x41);lcd_write_data(0x22);
                   646   ; graphic.c  117                        lcd_write_data(0x1C);lcd_write_data(0x00);break;
                   647   ; graphic.c  118                case 'E':lcd_write_data(0x7F);lcd_write_data(0x49);
                   648   ; graphic.c  119                        lcd_write_data(0x49);lcd_write_data(0x49);
                   649   ; graphic.c  120                        lcd_write_data(0x41);lcd_write_data(0x00);break;
                   650   ; graphic.c  121                case 'F':lcd_write_data(0x7F);lcd_write_data(0x09);
                   651   ; graphic.c  122                        lcd_write_data(0x09);lcd_write_data(0x09);
                   652   ; graphic.c  123                        lcd_write_data(0x01);lcd_write_data(0x00);break;
TASKING C166/ST10 assembler v8.0r1 Build 256 SN 00096962                    Date: Apr 23 2004  Time: 16:27:03  Page:  13
graphic

 LOC CODE        LINE   SOURCELINE

                   653   ; graphic.c  124                case 'G':lcd_write_data(0x3E);lcd_write_data(0x41);
                   654   ; graphic.c  125                        lcd_write_data(0x49);lcd_write_data(0x49);
                   655   ; graphic.c  126                        lcd_write_data(0x7A);lcd_write_data(0x00);break;
                   656   ; graphic.c  127                case 'H':lcd_write_data(0x7F);lcd_write_data(0x80);
                   657   ; graphic.c  128                        lcd_write_data(0x80);lcd_write_data(0x80);
                   658   ; graphic.c  129                        lcd_write_data(0x7F);lcd_write_data(0x00);break;
                   659   ; graphic.c  130                case 'I':lcd_write_data(0x00);lcd_write_data(0x41);
                   660   ; graphic.c  131                        lcd_write_data(0x7F);lcd_write_data(0x41);
                   661   ; graphic.c  132                        lcd_write_data(0x00);lcd_write_data(0x00);break;
                   662   ; graphic.c  133                case 'J':lcd_write_data(0x20);lcd_write_data(0x40);
                   663   ; graphic.c  134                        lcd_write_data(0x41);lcd_write_data(0x3F);
                   664   ; graphic.c  135                        lcd_write_data(0x01);lcd_write_data(0x00);break;
                   665   ; graphic.c  136                case 'K':lcd_write_data(0x7F);lcd_write_data(0x08);
                   666   ; graphic.c  137                        lcd_write_data(0x14);lcd_write_data(0x22);
                   667   ; graphic.c  138                        lcd_write_data(0x41);lcd_write_data(0x00);break;
                   668   ; graphic.c  139                case 'L':lcd_write_data(0x7F);lcd_write_data(0x40);
                   669   ; graphic.c  140                        lcd_write_data(0x40);lcd_write_data(0x40);
                   670   ; graphic.c  141                        lcd_write_data(0x40);lcd_write_data(0x00);break;
                   671   ; graphic.c  142                case 'M':lcd_write_data(0x7F);lcd_write_data(0x02);
                   672   ; graphic.c  143                        lcd_write_data(0x0C);lcd_write_data(0x02);
                   673   ; graphic.c  144                        lcd_write_data(0x7F);lcd_write_data(0x00);break;
                   674   ; graphic.c  145                case 'N':lcd_write_data(0x7F);lcd_write_data(0x04);
                   675   ; graphic.c  146                        lcd_write_data(0x08);lcd_write_data(0x10);
                   676   ; graphic.c  147                        lcd_write_data(0x7F);lcd_write_data(0x00);break;
                   677   ; graphic.c  148                case 'O':lcd_write_data(0x3E);lcd_write_data(0x41);
                   678   ; graphic.c  149                        lcd_write_data(0x41);lcd_write_data(0x41);
                   679   ; graphic.c  150                        lcd_write_data(0x3E);lcd_write_data(0x00);break;
                   680   ; graphic.c  151                case 'P':lcd_write_data(0x7F);lcd_write_data(0x09);
                   681   ; graphic.c  152                        lcd_write_data(0x09);lcd_write_data(0x09);
                   682   ; graphic.c  153                        lcd_write_data(0x06);lcd_write_data(0x00);break;
                   683   ; graphic.c  154                case 'Q':lcd_write_data(0x3E);lcd_write_data(0x41);
                   684   ; graphic.c  155                        lcd_write_data(0x51);lcd_write_data(0x21);
                   685   ; graphic.c  156                        lcd_write_data(0x5E);lcd_write_data(0x00);break;
                   686   ; graphic.c  157                case 'R':lcd_write_data(0x7F);lcd_write_data(0x09);
                   687   ; graphic.c  158                        lcd_write_data(0x19);lcd_write_data(0x29);
                   688   ; graphic.c  159                        lcd_write_data(0x46);lcd_write_data(0x00);break;
                   689   ; graphic.c  160                case 'S':lcd_write_data(0x26);lcd_write_data(0x49);
                   690   ; graphic.c  161                        lcd_write_data(0x49);lcd_write_data(0x49);
                   691   ; graphic.c  162                        lcd_write_data(0x32);lcd_write_data(0x00);break;
                   692   ; graphic.c  163                case 'T':lcd_write_data(0x01);lcd_write_data(0x01);
                   693   ; graphic.c  164                        lcd_write_data(0x7F);lcd_write_data(0x01);
                   694   ; graphic.c  165                        lcd_write_data(0x01);lcd_write_data(0x00);break;
                   695   ; graphic.c  166                case 'U':lcd_write_data(0x3F);lcd_write_data(0x40);
                   696   ; graphic.c  167                        lcd_write_data(0x40);lcd_write_data(0x40);
                   697   ; graphic.c  168                        lcd_write_data(0x3F);lcd_write_data(0x00);break;
                   698   ; graphic.c  169                case 'V':lcd_write_data(0x1F);lcd_write_data(0x20);
                   699   ; graphic.c  170                        lcd_write_data(0x40);lcd_write_data(0x20);
                   700   ; graphic.c  171                        lcd_write_data(0x1F);lcd_write_data(0x00);break;
                   701   ; graphic.c  172                case 'W':lcd_write_data(0x3F);lcd_write_data(0x40);
                   702   ; graphic.c  173                        lcd_write_data(0x38);lcd_write_data(0x40);
                   703   ; graphic.c  174                        lcd_write_data(0x3F);lcd_write_data(0x00);break;
                   704   ; graphic.c  175                case 'X':lcd_write_data(0x63);lcd_write_data(0x14);
                   705   ; graphic.c  176                        lcd_write_data(0x08);lcd_write_data(0x14);
                   706   ; graphic.c  177                        lcd_write_data(0x63);lcd_write_data(0x00);break;
                   707   ; graphic.c  178                case 'Y':lcd_write_data(0x07);lcd_write_data(0x08);
TASKING C166/ST10 assembler v8.0r1 Build 256 SN 00096962                    Date: Apr 23 2004  Time: 16:27:03  Page:  14
graphic

 LOC CODE        LINE   SOURCELINE

                   708   ; graphic.c  179                        lcd_write_data(0x70);lcd_write_data(0x08);
                   709   ; graphic.c  180                        lcd_write_data(0x07);lcd_write_data(0x00);break;
                   710   ; graphic.c  181                case 'Z':lcd_write_data(0x61);lcd_write_data(0x51);
                   711   ; graphic.c  182                        lcd_write_data(0x49);lcd_write_data(0x45);
                   712   ; graphic.c  183                        lcd_write_data(0x43);lcd_write_data(0x00);break;
                   713   ; graphic.c  184            }
                   714   ; graphic.c  185        
                   715   ; graphic.c  186          */
                   716   GRAPHIC_1_PR    ENDS
                   717   
                   718   C166_US SECTION DATA WORD GLBUSRSTACK 'CUSTACK'
0000               719           DS      44
                   720   C166_US ENDS
                   721   
                   722           EXTERN  _lcd_read_reg:NEAR
                   723           EXTERN  _lcd_write:NEAR
                   724           REGDEF  R0-R15
                   725           END

total errors: 0, warnings: 0

⌨️ 快捷键说明

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