📄 lcd.lis
字号:
0000 ; { 0x00, 0x07, 0x00, 0x07, 0x00 }, // "
0000 ; { 0x14, 0x7f, 0x14, 0x7f, 0x14 }, // #
0000 ; { 0x24, 0x2a, 0x7f, 0x2a, 0x12 }, // $
0000 ; { 0xc4, 0xc8, 0x10, 0x26, 0x46 }, // %
0000 ; { 0x36, 0x49, 0x55, 0x22, 0x50 }, // &
0000 ; { 0x00, 0x05, 0x03, 0x00, 0x00 }, // '
0000 ; { 0x00, 0x1c, 0x22, 0x41, 0x00 }, // (
0000 ; { 0x00, 0x41, 0x22, 0x1c, 0x00 }, // )
0000 ; { 0x14, 0x08, 0x3E, 0x08, 0x14 }, // *
0000 ; { 0x08, 0x08, 0x3E, 0x08, 0x08 }, // +
0000 ; { 0x00, 0x00, 0x50, 0x30, 0x00 }, // ,
0000 ; { 0x10, 0x10, 0x10, 0x10, 0x10 }, // -
0000 ; { 0x00, 0x60, 0x60, 0x00, 0x00 }, // .
0000 ; { 0x20, 0x10, 0x08, 0x04, 0x02 }, // /
0000 ; { 0x3E, 0x51, 0x49, 0x45, 0x3E }, // 0
0000 ; { 0x00, 0x42, 0x7F, 0x40, 0x00 }, // 1
0000 ; { 0x42, 0x61, 0x51, 0x49, 0x46 }, // 2
0000 ; { 0x21, 0x41, 0x45, 0x4B, 0x31 }, // 3
0000 ; { 0x18, 0x14, 0x12, 0x7F, 0x10 }, // 4
0000 ; { 0x27, 0x45, 0x45, 0x45, 0x39 }, // 5
0000 ; { 0x3C, 0x4A, 0x49, 0x49, 0x30 }, // 6
0000 ; { 0x01, 0x71, 0x09, 0x05, 0x03 }, // 7
0000 ; { 0x36, 0x49, 0x49, 0x49, 0x36 }, // 8
0000 ; { 0x06, 0x49, 0x49, 0x29, 0x1E }, // 9
0000 ; { 0x00, 0x36, 0x36, 0x00, 0x00 }, // :
0000 ; { 0x00, 0x56, 0x36, 0x00, 0x00 }, // ;
0000 ; { 0x08, 0x14, 0x22, 0x41, 0x00 }, // <
0000 ; { 0x14, 0x14, 0x14, 0x14, 0x14 }, // =
0000 ; { 0x00, 0x41, 0x22, 0x14, 0x08 }, // >
0000 ; { 0x02, 0x01, 0x51, 0x09, 0x06 }, // ?
0000 ; { 0x32, 0x49, 0x59, 0x51, 0x3E }, // @
0000 ; { 0x7E, 0x11, 0x11, 0x11, 0x7E }, // A
0000 ; { 0x7F, 0x49, 0x49, 0x49, 0x36 }, // B
0000 ; { 0x3E, 0x41, 0x41, 0x41, 0x22 }, // C
0000 ; { 0x7F, 0x41, 0x41, 0x22, 0x1C }, // D
0000 ; { 0x7F, 0x49, 0x49, 0x49, 0x41 }, // E
0000 ; { 0x7F, 0x09, 0x09, 0x09, 0x01 }, // F
0000 ; { 0x3E, 0x41, 0x49, 0x49, 0x7A }, // G
0000 ; { 0x7F, 0x08, 0x08, 0x08, 0x7F }, // H
0000 ; { 0x00, 0x41, 0x7F, 0x41, 0x00 }, // I
0000 ; { 0x20, 0x40, 0x41, 0x3F, 0x01 }, // J
0000 ; { 0x7F, 0x08, 0x14, 0x22, 0x41 }, // K
0000 ; { 0x7F, 0x40, 0x40, 0x40, 0x40 }, // L
0000 ; { 0x7F, 0x02, 0x0C, 0x02, 0x7F }, // M
0000 ; { 0x7F, 0x04, 0x08, 0x10, 0x7F }, // N
0000 ; { 0x3E, 0x41, 0x41, 0x41, 0x3E }, // O
0000 ; { 0x7F, 0x09, 0x09, 0x09, 0x06 }, // P
0000 ; { 0x3E, 0x41, 0x51, 0x21, 0x5E }, // Q
0000 ; { 0x7F, 0x09, 0x19, 0x29, 0x46 }, // R
0000 ; { 0x46, 0x49, 0x49, 0x49, 0x31 }, // S
0000 ; { 0x01, 0x01, 0x7F, 0x01, 0x01 }, // T
0000 ; { 0x3F, 0x40, 0x40, 0x40, 0x3F }, // U
0000 ; { 0x1F, 0x20, 0x40, 0x20, 0x1F }, // V
0000 ; { 0x3F, 0x40, 0x38, 0x40, 0x3F }, // W
0000 ; { 0x63, 0x14, 0x08, 0x14, 0x63 }, // X
0000 ; { 0x07, 0x08, 0x70, 0x08, 0x07 }, // Y
0000 ; { 0x61, 0x51, 0x49, 0x45, 0x43 }, // Z
0000 ; { 0x00, 0x7F, 0x41, 0x41, 0x00 }, // [
0000 ; { 0x55, 0x2A, 0x55, 0x2A, 0x55 }, // 55
0000 ; { 0x00, 0x41, 0x41, 0x7F, 0x00 }, // ]
0000 ; { 0x04, 0x02, 0x01, 0x02, 0x04 }, // ^
0000 ; { 0x40, 0x40, 0x40, 0x40, 0x40 }, // _
0000 ; { 0x00, 0x01, 0x02, 0x04, 0x00 }, // '
0000 ; { 0x20, 0x54, 0x54, 0x54, 0x78 }, // a
0000 ; { 0x7F, 0x48, 0x44, 0x44, 0x38 }, // b
0000 ; { 0x38, 0x44, 0x44, 0x44, 0x20 }, // c
0000 ; { 0x38, 0x44, 0x44, 0x48, 0x7F }, // d
0000 ; { 0x38, 0x54, 0x54, 0x54, 0x18 }, // e
0000 ; { 0x08, 0x7E, 0x09, 0x01, 0x02 }, // f
0000 ; { 0x0C, 0x52, 0x52, 0x52, 0x3E }, // g
0000 ; { 0x7F, 0x08, 0x04, 0x04, 0x78 }, // h
0000 ; { 0x00, 0x44, 0x7D, 0x40, 0x00 }, // i
0000 ; { 0x20, 0x40, 0x44, 0x3D, 0x00 }, // j
0000 ; { 0x7F, 0x10, 0x28, 0x44, 0x00 }, // k
0000 ; { 0x00, 0x41, 0x7F, 0x40, 0x00 }, // l
0000 ; { 0x7C, 0x04, 0x18, 0x04, 0x78 }, // m
0000 ; { 0x7C, 0x08, 0x04, 0x04, 0x78 }, // n
0000 ; { 0x38, 0x44, 0x44, 0x44, 0x38 }, // o
0000 ; { 0x7C, 0x14, 0x14, 0x14, 0x08 }, // p
0000 ; { 0x08, 0x14, 0x14, 0x18, 0x7C }, // q
0000 ; { 0x7C, 0x08, 0x04, 0x04, 0x08 }, // r
0000 ; { 0x48, 0x54, 0x54, 0x54, 0x20 }, // s
0000 ; { 0x04, 0x3F, 0x44, 0x40, 0x20 }, // t
0000 ; { 0x3C, 0x40, 0x40, 0x20, 0x7C }, // u
0000 ; { 0x1C, 0x20, 0x40, 0x20, 0x1C }, // v
0000 ; { 0x3C, 0x40, 0x30, 0x40, 0x3C }, // w
0000 ; { 0x44, 0x28, 0x10, 0x28, 0x44 }, // x
0000 ; { 0x0C, 0x50, 0x50, 0x50, 0x3C }, // y
0000 ; { 0x44, 0x64, 0x54, 0x4C, 0x44 }, // z
0000 ; { 0x00, 0x08, 0x36, 0x41, 0x41 }, // {
0000 ; { 0x00, 0x00, 0x7f, 0x00, 0x00 }, // |
0000 ; { 0x41, 0x41, 0x36, 0x08, 0x00 }, // }
0000 ; { 0x04, 0x02, 0x04, 0x08, 0x04 }, // ~
0000 ; { 0x00, 0x00, 0x00, 0x00, 0x00 }, // del
0000 ; };
0000 ;
0000 ; unsigned char temp_i;
0000 ; //声明全局变量
0000 ;
0000 ; void display(void)
0000 ; {
0000 .dbline 123
0000 ; Write_time();
0000 05D0 xcall _Write_time
0002 .dbline 124
0002 ; Write_latitude();
0002 6ED0 xcall _Write_latitude
0004 .dbline 125
0004 ; Write_longtitude();
0004 E9D0 xcall _Write_longtitude
0006 .dbline 126
0006 ; Write_date();
0006 6BD1 xcall _Write_date
0008 .dbline 128
0008 ;
0008 ; lcd_display2();
0008 74D3 xcall _lcd_display2
000A .dbline -2
000A L1:
000A .dbline 0 ; func end
000A 0895 ret
000C .dbend
000C .dbfunc e Write_time _Write_time fV
000C ; i -> <dead>
000C ; aptr -> R16,R17
.even
000C _Write_time::
000C .dbline -1
000C .dbline 140
000C ; }
000C ;
000C ;
000C ; /*******************************************************
000C ; display every item
000C ; incluede display time ,data,latitude N/S,longtitude E/W
000C ;
000C ; ********************************************************/
000C ;
000C ; //write time to lcd buffer
000C ; void Write_time(void)
000C ; {
000C .dbline 145
000C ;
000C ; char* aptr;
000C ; int i;
000C ;
000C ; aptr=time;
000C 00E0 ldi R16,<_time
000E 10E0 ldi R17,>_time
0010 .dbline 147
0010 ;
0010 ; lcd_display_wrp=&lcd_display2_buffer[1][1];
0010 80E0 ldi R24,<_lcd_display2_buffer+21+1
0012 90E0 ldi R25,>_lcd_display2_buffer+21+1
0014 90930400 sts _lcd_display_wrp+1,R25
0018 80930300 sts _lcd_display_wrp,R24
001C .dbline 148
001C ; *lcd_display_wrp++='T';
001C 84E5 ldi R24,84
001E E0910300 lds R30,_lcd_display_wrp
0022 F0910400 lds R31,_lcd_display_wrp+1
0026 8193 st Z+,R24
0028 F0930400 sts _lcd_display_wrp+1,R31
002C E0930300 sts _lcd_display_wrp,R30
0030 .dbline 149
0030 ; *lcd_display_wrp++='I';
0030 89E4 ldi R24,73
0032 8193 st Z+,R24
0034 F0930400 sts _lcd_display_wrp+1,R31
0038 E0930300 sts _lcd_display_wrp,R30
003C .dbline 150
003C ; *lcd_display_wrp++='M';
003C 8DE4 ldi R24,77
003E 8193 st Z+,R24
0040 F0930400 sts _lcd_display_wrp+1,R31
0044 E0930300 sts _lcd_display_wrp,R30
0048 .dbline 151
0048 ; *lcd_display_wrp++='E';
0048 85E4 ldi R24,69
004A 8193 st Z+,R24
004C F0930400 sts _lcd_display_wrp+1,R31
0050 E0930300 sts _lcd_display_wrp,R30
0054 .dbline 152
0054 ; *lcd_display_wrp++=':';
0054 8AE3 ldi R24,58
0056 8193 st Z+,R24
0058 F0930400 sts _lcd_display_wrp+1,R31
005C E0930300 sts _lcd_display_wrp,R30
0060 .dbline 154
0060 ;
0060 ; *lcd_display_wrp++=time[0];
0060 20900000 lds R2,_time
0064 2192 st Z+,R2
0066 F0930400 sts _lcd_display_wrp+1,R31
006A E0930300 sts _lcd_display_wrp,R30
006E .dbline 155
006E ; *lcd_display_wrp++=time[1];
006E 20900100 lds R2,_time+1
0072 2192 st Z+,R2
0074 F0930400 sts _lcd_display_wrp+1,R31
0078 E0930300 sts _lcd_display_wrp,R30
007C .dbline 156
007C ; *lcd_display_wrp++=':';
007C 8193 st Z+,R24
007E F0930400 sts _lcd_display_wrp+1,R31
0082 E0930300 sts _lcd_display_wrp,R30
0086 .dbline 157
0086 ; *lcd_display_wrp++=time[2];
0086 20900200 lds R2,_time+2
008A 2192 st Z+,R2
008C F0930400 sts _lcd_display_wrp+1,R31
0090 E0930300 sts _lcd_display_wrp,R30
0094 .dbline 158
0094 ; *lcd_display_wrp++=time[3];
0094 20900300 lds R2,_time+3
0098 2192 st Z+,R2
009A F0930400 sts _lcd_display_wrp+1,R31
009E E0930300 sts _lcd_display_wrp,R30
00A2 .dbline 159
00A2 ; *lcd_display_wrp++=':';
00A2 8193 st Z+,R24
00A4 F0930400 sts _lcd_display_wrp+1,R31
00A8 E0930300 sts _lcd_display_wrp,R30
00AC .dbline 160
00AC ; *lcd_display_wrp++=time[4];
00AC 20900400 lds R2,_time+4
00B0 2192 st Z+,R2
00B2 F0930400 sts _lcd_display_wrp+1,R31
00B6 E0930300 sts _lcd_display_wrp,R30
00BA .dbline 161
00BA ; *lcd_display_wrp++=time[5];
00BA 20900500 lds R2,_time+5
00BE 2192 st Z+,R2
00C0 F0930400 sts _lcd_display_wrp+1,R31
00C4 E0930300 sts _lcd_display_wrp,R30
00C8 .dbline 163
00C8 ;
00C8 ; lcd_display_wrp=&lcd_display2_buffer[0][0];
00C8 80E0 ldi R24,<_lcd_display2_buffer
00CA 90E0 ldi R25,>_lcd_display2_buffer
00CC 90930400 sts _lcd_display_wrp+1,R25
00D0 80930300 sts _lcd_display_wrp,R24
00D4 .dbline 164
00D4 ; lcd_display_rdp=&lcd_display2_buffer[0][0];
00D4 90930200 sts _lcd_display_rdp+1,R25
00D8 80930100 sts _lcd_display_rdp,R24
00DC .dbline 165
00DC ; SEI();
00DC 7894 sei
00DE .dbline -2
00DE L2:
00DE .dbline 0 ; func end
00DE 0895 ret
00E0 .dbsym l i 1 I
00E0 .dbsym r aptr 16 pc
00E0 .dbend
00E0 .dbfunc e Write_latitude _Write_latitude fV
00E0 ; i -> <dead>
00E0 ; aptr -> R16,R17
.even
00E0 _Write_latitude::
00E0 .dbline -1
00E0 .dbline 171
00E0 ;
00E0 ; }
00E0 ;
00E0 ; //write latitude to lcd buffer
00E0 ; void Write_latitude(void)
00E0 ; {
00E0 .dbline 176
00E0 ;
00E0 ; char* aptr;
00E0 ; int i;
00E0 ;
00E0 ; aptr=time;
00E0 00E0 ldi R16,<_time
00E2 10E0 ldi R17,>_time
00E4 .dbline 178
00E4 ;
00E4 ; lcd_display_wrp=&lcd_display2_buffer[2][1];
00E4 80E0 ldi R24,<_lcd_display2_buffer+42+1
00E6 90E0 ldi R25,>_lcd_display2_buffer+42+1
00E8 90930400 sts _lcd_display_wrp+1,R25
00EC 80930300 sts _lcd_display_wrp,R24
00F0 .dbline 179
00F0 ; *lcd_display_wrp++='L';
00F0 8CE4 ldi R24,76
00F2 E0910300 lds R30,_lcd_display_wrp
00F6 F0910400 lds R31,_lcd_display_wrp+1
00FA 8193 st Z+,R24
00FC F0930400 sts _lcd_display_wrp+1,R31
0100 E0930300 sts _lcd_display_wrp,R30
0104 .dbline 180
0104 ; *lcd_display_wrp++='A';
0104 81E4 ldi R24,65
0106 8193 st Z+,R24
0108 F0930400 sts _lcd_display_wrp+1,R31
010C E0930300 sts _lcd_display_wrp,R30
0110 .dbline 181
0110 ; *lcd_display_wrp++='T';
0110 84E5 ldi R24,84
0112 8193 st Z+,R24
0114 F0930400 sts _lcd_display_wrp+1,R31
0118 E0930300 sts _lcd_display_wrp,R30
011C .dbline 182
011C ; *lcd_display_wrp++=':';
011C 8AE3 ldi R24,58
011E 8193 st Z+,R24
0120 F0930400 sts _lcd_display_wrp+1,R31
0124 E0930300 sts _lcd_display_wrp,R30
0128 .dbline 184
0128 ;
0128 ; *lcd_display_wrp++=latitude[0];
0128 20900000 lds R2,_latitude
012C 2192 st Z+,R2
012E F0930400 sts _lcd_display_wrp+1,R31
0132 E0930300 sts _lcd_display_wrp,R30
0136 .dbline 185
0136 ; *lcd_display_wrp++=latitude[1];
0136 20900100 lds R2,_latitude+1
013A 2192 st Z+,R2
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -