📄 app.s
字号:
.module app.c
.area text(rom, con, rel)
.dbfile C:\DOCUME~1\yehaoran\桌面\AVRuIP\app.c
.dbfunc e example1_init _example1_init fV
.even
_example1_init::
.dbline -1
.dbline 9
; /*****************************************************************************
; * "A Very Simple Application" from the uIP 0.9 documentation
; *****************************************************************************/
;
; #include "app.h"
;
;
; void example1_init(void)
; {
.dbline 10
; uip_listen(HTONS(1234));
ldi R16,53764
ldi R17,210
xcall _uip_listen
.dbline -2
L7:
.dbline 0 ; func end
ret
.dbend
.dbfunc e example1_app _example1_app fV
.even
_example1_app::
.dbline -1
.dbline 15
; }
;
;
; void example1_app(void)
; {
.dbline 16
; if(uip_newdata() || uip_rexmit())
lds R2,_uip_flags
sbrc R2,1
rjmp L11
lds R2,_uip_flags
sbrs R2,2
rjmp L9
L11:
.dbline 17
; {
L12:
.dbline 18
.dbline 18
ldi R24,<L15
ldi R25,>L15
sts _uip_sappdata+1,R25
sts _uip_sappdata,R24
.dbline 18
ldi R24,3
ldi R25,0
sts _uip_slen+1,R25
sts _uip_slen,R24
.dbline 18
L13:
.dbline 18
.dbline 19
L9:
.dbline -2
L8:
.dbline 0 ; func end
ret
.dbend
.area data(ram, con, rel)
.dbfile C:\DOCUME~1\yehaoran\桌面\AVRuIP\app.c
L15:
.blkb 4
.area idata
.byte 'o,'k,10,0
.area data(ram, con, rel)
.dbfile C:\DOCUME~1\yehaoran\桌面\AVRuIP\app.c
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -