📄 lcd-char.lss
字号:
unsigned char i;
LCD_set_XY(row*8, page);// 列,页
for(i=0; i<8;i++)
7be: 8c e5 ldi r24, 0x5C ; 92
7c0: e8 2e mov r14, r24
7c2: 82 e0 ldi r24, 0x02 ; 2
7c4: f8 2e mov r15, r24
7c6: ec 0e add r14, r28
7c8: fd 1e adc r15, r29
7ca: 28 97 sbiw r28, 0x08 ; 8
{
LCD_write_byte(pgm_read_byte(shuzi+c*16+i),1);
7cc: f8 01 movw r30, r16
7ce: 84 91 lpm r24, Z+
7d0: 61 e0 ldi r22, 0x01 ; 1
7d2: 58 df rcall .-336 ; 0x684 <LCD_write_byte>
7d4: 0f 5f subi r16, 0xFF ; 255
7d6: 1f 4f sbci r17, 0xFF ; 255
void LCD_write_shu(unsigned char row, unsigned char page,unsigned char c) //row:列 page:页 dd:字符
{
unsigned char i;
LCD_set_XY(row*8, page);// 列,页
for(i=0; i<8;i++)
7d8: 0e 15 cp r16, r14
7da: 1f 05 cpc r17, r15
7dc: b9 f7 brne .-18 ; 0x7cc <LCD_write_shu+0x48>
{
LCD_write_byte(pgm_read_byte(shuzi+c*16+i),1);
}
LCD_set_XY(row*8, page+1);// 列,页
7de: d3 94 inc r13
7e0: 8c 2d mov r24, r12
7e2: 6d 2d mov r22, r13
7e4: 81 df rcall .-254 ; 0x6e8 <LCD_set_XY>
for(i=8; i<16;i++)
7e6: 60 96 adiw r28, 0x10 ; 16
7e8: c4 5a subi r28, 0xA4 ; 164
7ea: dd 4f sbci r29, 0xFD ; 253
{
LCD_write_byte(pgm_read_byte(shuzi+c*16+i),1);
7ec: f8 01 movw r30, r16
7ee: 84 91 lpm r24, Z+
7f0: 61 e0 ldi r22, 0x01 ; 1
7f2: 48 df rcall .-368 ; 0x684 <LCD_write_byte>
7f4: 0f 5f subi r16, 0xFF ; 255
7f6: 1f 4f sbci r17, 0xFF ; 255
{
LCD_write_byte(pgm_read_byte(shuzi+c*16+i),1);
}
LCD_set_XY(row*8, page+1);// 列,页
for(i=8; i<16;i++)
7f8: 0c 17 cp r16, r28
7fa: 1d 07 cpc r17, r29
7fc: b9 f7 brne .-18 ; 0x7ec <LCD_write_shu+0x68>
{
LCD_write_byte(pgm_read_byte(shuzi+c*16+i),1);
}
sce1;
7fe: 5d 9a sbi 0x0b, 5 ; 11
}
800: df 91 pop r29
802: cf 91 pop r28
804: 1f 91 pop r17
806: 0f 91 pop r16
808: ff 90 pop r15
80a: ef 90 pop r14
80c: df 90 pop r13
80e: cf 90 pop r12
810: 08 95 ret
00000812 <LCD_write_hanzi>:
//网址:www.nbdpj.com
//邮箱:nbdpj@nbdpj.com
//日期:20090304
//-----------------------------------------
void LCD_write_hanzi(unsigned char row, unsigned char page,unsigned char c) //row:列 page:页 dd:字符
{
812: cf 92 push r12
814: df 92 push r13
816: ef 92 push r14
818: ff 92 push r15
81a: 0f 93 push r16
81c: 1f 93 push r17
81e: cf 93 push r28
820: df 93 push r29
822: d6 2e mov r13, r22
824: 14 2f mov r17, r20
unsigned char i;
LCD_set_XY(row*8, page);// 列,页
826: 90 e0 ldi r25, 0x00 ; 0
828: 53 e0 ldi r21, 0x03 ; 3
82a: 88 0f add r24, r24
82c: 99 1f adc r25, r25
82e: 5a 95 dec r21
830: e1 f7 brne .-8 ; 0x82a <LCD_write_hanzi+0x18>
832: c8 2e mov r12, r24
834: 59 df rcall .-334 ; 0x6e8 <LCD_set_XY>
for(i=0; i<16;i++)
{
LCD_write_byte(pgm_read_byte(hanzi+c*32+i),1);
836: c1 2f mov r28, r17
838: d0 e0 ldi r29, 0x00 ; 0
83a: 45 e0 ldi r20, 0x05 ; 5
83c: cc 0f add r28, r28
83e: dd 1f adc r29, r29
840: 4a 95 dec r20
842: e1 f7 brne .-8 ; 0x83c <LCD_write_hanzi+0x2a>
844: 8e 01 movw r16, r28
846: 04 5b subi r16, 0xB4 ; 180
848: 1a 4f sbci r17, 0xFA ; 250
//网址:www.nbdpj.com
//邮箱:nbdpj@nbdpj.com
//日期:20090304
//-----------------------------------------
void LCD_write_hanzi(unsigned char row, unsigned char page,unsigned char c) //row:列 page:页 dd:字符
{
84a: 60 96 adiw r28, 0x10 ; 16
unsigned char i;
LCD_set_XY(row*8, page);// 列,页
for(i=0; i<16;i++)
84c: 3c e4 ldi r19, 0x4C ; 76
84e: e3 2e mov r14, r19
850: 35 e0 ldi r19, 0x05 ; 5
852: f3 2e mov r15, r19
854: ec 0e add r14, r28
856: fd 1e adc r15, r29
858: 60 97 sbiw r28, 0x10 ; 16
{
LCD_write_byte(pgm_read_byte(hanzi+c*32+i),1);
85a: f8 01 movw r30, r16
85c: 84 91 lpm r24, Z+
85e: 61 e0 ldi r22, 0x01 ; 1
860: 11 df rcall .-478 ; 0x684 <LCD_write_byte>
862: 0f 5f subi r16, 0xFF ; 255
864: 1f 4f sbci r17, 0xFF ; 255
void LCD_write_hanzi(unsigned char row, unsigned char page,unsigned char c) //row:列 page:页 dd:字符
{
unsigned char i;
LCD_set_XY(row*8, page);// 列,页
for(i=0; i<16;i++)
866: 0e 15 cp r16, r14
868: 1f 05 cpc r17, r15
86a: b9 f7 brne .-18 ; 0x85a <LCD_write_hanzi+0x48>
{
LCD_write_byte(pgm_read_byte(hanzi+c*32+i),1);
}
LCD_set_XY(row*8, page+1);// 列,页
86c: d3 94 inc r13
86e: 8c 2d mov r24, r12
870: 6d 2d mov r22, r13
872: 3a df rcall .-396 ; 0x6e8 <LCD_set_XY>
for(i=16; i<32;i++)
874: a0 96 adiw r28, 0x20 ; 32
876: c4 5b subi r28, 0xB4 ; 180
878: da 4f sbci r29, 0xFA ; 250
{
LCD_write_byte(pgm_read_byte(hanzi+c*32+i),1);
87a: f8 01 movw r30, r16
87c: 84 91 lpm r24, Z+
87e: 61 e0 ldi r22, 0x01 ; 1
880: 01 df rcall .-510 ; 0x684 <LCD_write_byte>
882: 0f 5f subi r16, 0xFF ; 255
884: 1f 4f sbci r17, 0xFF ; 255
{
LCD_write_byte(pgm_read_byte(hanzi+c*32+i),1);
}
LCD_set_XY(row*8, page+1);// 列,页
for(i=16; i<32;i++)
886: 0c 17 cp r16, r28
888: 1d 07 cpc r17, r29
88a: b9 f7 brne .-18 ; 0x87a <LCD_write_hanzi+0x68>
{
LCD_write_byte(pgm_read_byte(hanzi+c*32+i),1);
}
sce1;
88c: 5d 9a sbi 0x0b, 5 ; 11
}
88e: df 91 pop r29
890: cf 91 pop r28
892: 1f 91 pop r17
894: 0f 91 pop r16
896: ff 90 pop r15
898: ef 90 pop r14
89a: df 90 pop r13
89c: cf 90 pop r12
89e: 08 95 ret
000008a0 <main>:
//网址:www.nbdpj.com
//邮箱:nbdpj@nbdpj.com
//日期:20090304
int main(void)
{
DDRC = 0x06;
8a0: 86 e0 ldi r24, 0x06 ; 6
8a2: 87 b9 out 0x07, r24 ; 7
PORTC = 0x06;
8a4: 88 b9 out 0x08, r24 ; 8
DDRD = 0xB8;
8a6: 88 eb ldi r24, 0xB8 ; 184
8a8: 8a b9 out 0x0a, r24 ; 10
PORTD = 0xB8;
8aa: 8b b9 out 0x0b, r24 ; 11
LCD_init(); //初始化LCD模块
8ac: 00 df rcall .-512 ; 0x6ae <LCD_init>
LCD_clear(); //清屏幕
8ae: 29 df rcall .-430 ; 0x702 <LCD_clear>
LCD_write_hanzi(0,0,0); //宁
8b0: 80 e0 ldi r24, 0x00 ; 0
8b2: 60 e0 ldi r22, 0x00 ; 0
8b4: 40 e0 ldi r20, 0x00 ; 0
8b6: ad df rcall .-166 ; 0x812 <LCD_write_hanzi>
LCD_write_hanzi(2,0,1); //波
8b8: 82 e0 ldi r24, 0x02 ; 2
8ba: 60 e0 ldi r22, 0x00 ; 0
8bc: 41 e0 ldi r20, 0x01 ; 1
8be: a9 df rcall .-174 ; 0x812 <LCD_write_hanzi>
LCD_write_hanzi(4,0,2); //单
8c0: 84 e0 ldi r24, 0x04 ; 4
8c2: 60 e0 ldi r22, 0x00 ; 0
8c4: 42 e0 ldi r20, 0x02 ; 2
8c6: a5 df rcall .-182 ; 0x812 <LCD_write_hanzi>
LCD_write_hanzi(6,0,3); //片
8c8: 86 e0 ldi r24, 0x06 ; 6
8ca: 60 e0 ldi r22, 0x00 ; 0
8cc: 43 e0 ldi r20, 0x03 ; 3
8ce: a1 df rcall .-190 ; 0x812 <LCD_write_hanzi>
LCD_write_hanzi(8,0,4); //机
8d0: 88 e0 ldi r24, 0x08 ; 8
8d2: 60 e0 ldi r22, 0x00 ; 0
8d4: 44 e0 ldi r20, 0x04 ; 4
8d6: 9d df rcall .-198 ; 0x812 <LCD_write_hanzi>
LCD_write_hanzi(1,2,5); //开
8d8: 81 e0 ldi r24, 0x01 ; 1
8da: 62 e0 ldi r22, 0x02 ; 2
8dc: 45 e0 ldi r20, 0x05 ; 5
8de: 99 df rcall .-206 ; 0x812 <LCD_write_hanzi>
LCD_write_hanzi(4,2,6); //发
8e0: 84 e0 ldi r24, 0x04 ; 4
8e2: 62 e0 ldi r22, 0x02 ; 2
8e4: 46 e0 ldi r20, 0x06 ; 6
8e6: 95 df rcall .-214 ; 0x812 <LCD_write_hanzi>
LCD_write_hanzi(7,2,7); //网
8e8: 87 e0 ldi r24, 0x07 ; 7
8ea: 62 e0 ldi r22, 0x02 ; 2
8ec: 47 e0 ldi r20, 0x07 ; 7
8ee: 91 df rcall .-222 ; 0x812 <LCD_write_hanzi>
LCD_write_String(1,4,"www.nbdpj.com"); //www.nbdpj.com
8f0: 81 e0 ldi r24, 0x01 ; 1
8f2: 64 e0 ldi r22, 0x04 ; 4
8f4: 40 e0 ldi r20, 0x00 ; 0
8f6: 51 e0 ldi r21, 0x01 ; 1
8f8: 38 df rcall .-400 ; 0x76a <LCD_write_String>
backled0; //开背光
8fa: 5b 98 cbi 0x0b, 3 ; 11
8fc: ff cf rjmp .-2 ; 0x8fc <main+0x5c>
000008fe <_exit>:
8fe: f8 94 cli
00000900 <__stop_program>:
900: ff cf rjmp .-2 ; 0x900 <__stop_program>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -