📄 lcd_c.s
字号:
.module lcd_c.c
.area text(rom, con, rel)
.dbfile G:\文档\LCD1602_C\lcd_c.c
.dbfunc e init_devices _init_devices fV
.even
_init_devices::
.dbline -1
.dbline 13
; /*----------------------------------------------------
; 主函数
; 编译器:ICC-AVR v6.31A 日期: 2005-11-24 20:29:57
; 目标芯片 : M16
; 时钟: 8.0000Mhz
; 作者:archeng504
; ---------------------------------------------------*/
;
; #include "LCD.h"
;
;
; void init_devices(void)
; {
.dbline 14
; CLI(); //disable all interrupts
cli
.dbline 15
; LCD_init();
xcall _LCD_init
.dbline 16
; MCUCR = 0x00;
clr R2
out 0x35,R2
.dbline 17
; GICR = 0x00;
out 0x3b,R2
.dbline 18
; TIMSK = 0x00; //timer interrupt sources
out 0x39,R2
.dbline 19
; SEI(); //re-enable interrupts
sei
.dbline -2
L1:
.dbline 0 ; func end
ret
.dbend
.dbfunc e main _main fV
.even
_main::
sbiw R28,2
.dbline -1
.dbline 23
; }
;
; void main(void)
; {
.dbline 24
; init_devices();
xcall _init_devices
.dbline 25
; for(;;)
L3:
.dbline 26
; {
.dbline 27
; LCD_write_string(0,0,"archeng");
ldi R24,<L7
ldi R25,>L7
std y+1,R25
std y+0,R24
clr R18
clr R16
xcall _LCD_write_string
.dbline 28
; LCD_write_char(1,0,'1234');
ldi R24,49
std y+0,R24
clr R18
ldi R16,1
xcall _LCD_write_char
.dbline 29
; }
.dbline 25
.dbline 25
xjmp L3
X0:
.dbline -2
L2:
.dbline 0 ; func end
adiw R28,2
ret
.dbend
.area data(ram, con, rel)
.dbfile G:\文档\LCD1602_C\lcd_c.c
L7:
.blkb 8
.area idata
.byte 'a,'r,'c,'h,'e,'n,'g,0
.area data(ram, con, rel)
.dbfile G:\文档\LCD1602_C\lcd_c.c
;
; }
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -