📄 main.s
字号:
.module main.c
.area text(rom, con, rel)
.dbfile E:\item\GPS-1280\main.c
.dbfunc e init_devices _init_devices fV
.even
_init_devices::
.dbline -1
.dbline 12
; //ICC-AVR application builder : 2008-10-26 13:13:33
; // Target : m1280
; // Crystal: 14.7456Mhz
;
; #include <iom1280v.h>
; #include <macros.h>
; #include "uart3.h"
; #include "debug.h"
; #include "watchdog.h"
;
; void init_devices(void)
; {
.dbline 13
; CLI();
cli
.dbline 15
; //--------------------------------
; DDRJ|=(1<<3); //开GPS模块电源
lds R24,260
ori R24,8
sts 260,R24
.dbline 16
; PORTJ|=(1<<3);
lds R24,261
ori R24,8
sts 261,R24
.dbline 18
; //--------------------------------
; DDRG|=(1<<5); //开GPRS,xflsh电源
sbi 0x13,5
.dbline 19
; PORTG|=(1<<5);
sbi 0x14,5
.dbline 21
; //--------------------------------
; watchdog_init();
xcall _watchdog_init
.dbline 22
; uart3_init();
xcall _uart3_init
.dbline 23
; SEI();
sei
.dbline -2
L1:
.dbline 0 ; func end
ret
.dbend
.dbfunc e main _main fV
.even
_main::
.dbline -1
.dbline 27
; }
;
; void main(void)
; {
.dbline 28
; init_devices();
xcall _init_devices
.dbline 29
; debug_str("GPS ^_^");
ldi R16,<L3
ldi R17,>L3
xcall _debug_str
xjmp L5
L4:
.dbline 32
;
; while(1)
; {
.dbline 33
; watchdog_set();
xcall _watchdog_set
.dbline 34
; uart3_function();
xcall _uart3_function
.dbline 35
; }
L5:
.dbline 31
xjmp L4
X0:
.dbline -2
L2:
.dbline 0 ; func end
ret
.dbend
.area data(ram, con, rel)
.dbfile E:\item\GPS-1280\main.c
L3:
.blkb 8
.area idata
.byte 'G,'P,'S,32,94,95,94,0
.area data(ram, con, rel)
.dbfile E:\item\GPS-1280\main.c
; }
;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -