📄 ac14-1.s
字号:
.module ac14-1.c
.area lit(rom, con, rel)
_str0::
.byte 45,'T,'h,'i,'s,32,'i,'s,32,'a,32,'L,'C,'D,45,33
.byte 0
.dbfile D:\AVR\第14章实验程序\ac14-1\ac14-1.c
.dbsym e str0 _str0 A[17:17]kc
_str1::
.byte 45,'D,'e,'s,'i,'g,'n,32,'b,'y,32,'Z,'X,'H,45,33
.byte 0
.dbsym e str1 _str1 A[17:17]kc
.area text(rom, con, rel)
.dbfile D:\AVR\第14章实验程序\ac14-1\ac14-1.c
.dbfunc e main _main fV
.even
_main::
.dbline 0 ; func end
ret
.dbend
.dbfunc e ePutstr _ePutstr fV
; ptr -> R2,R3
; y -> R1
; x -> R0
.even
_ePutstr::
.dbline 0 ; func end
ret
.dbsym l ptr 4 pkc
.dbsym l y 2 c
.dbsym l x 0 c
.dbend
.dbfunc e LocateXY _LocateXY fV
; posy -> R1
; posx -> R0
.even
_LocateXY::
.dbline 0 ; func end
ret
.dbsym l posy 2 c
.dbsym l posx 0 c
.dbend
.dbfunc e DisplayOneChar _DisplayOneChar fV
; Wdata -> R2
; y -> R1
; x -> R0
.even
_DisplayOneChar::
.dbline 0 ; func end
ret
.dbsym l Wdata 4 c
.dbsym l y 2 c
.dbsym l x 0 c
.dbend
.dbfunc e InitLcd _InitLcd fV
.even
_InitLcd::
.dbline 0 ; func end
ret
.dbend
.dbfunc e LcdWriteCommand _LcdWriteCommand fV
; Attribc -> R1
; CMD -> R0
.even
_LcdWriteCommand::
.dbline 0 ; func end
ret
.dbsym l Attribc 2 c
.dbsym l CMD 0 c
.dbend
.dbfunc e LcdWriteData _LcdWriteData fV
; dataW -> R0
.even
_LcdWriteData::
.dbline 0 ; func end
ret
.dbsym l dataW 0 c
.dbend
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -