📄 main.asm
字号:
*hit651 voice platform software
*==================== main.asm =======================
*2004.1.1 hit651
*
.mmregs
.global _c_int00
.include c54.inc
.include netcard.inc
.include variable.inc
.include macro.inc
.def taskfree,reveice_process
.ref c54_init,voice_init
.ref netcard_init,set_mynodeid
.ref arp_request,arp_process,ip_process
.ref send_data
.text
.align 0x1000
_c_int00:
nop
DELAY 1000
STM 0x3000,SP
CALL c54_init
CALL voice_init
;**********************************************************
*复位8019,并选中IDE1
ST #1,*(rst8019_map)
PORTW *(rst8019_map),RST8019
STM #(100-1),AR2
main_0: DELAY 50000 ;0.5ms * 100=50ms
BANZ main_0,*AR2-
ST #0,*(rst8019_map)
PORTW *(rst8019_map),RST8019
ST #1,*(rst8019_map)
PORTW *(rst8019_map),0x8001
STM #(40-1),AR2
main_1: DELAY 50000 ;0.5ms * 40=20ms
BANZ main_1,*AR2-
;**********************************************************
CALL netcard_init
CALL set_mynodeid
;**********************************************************
RSBX INTM
STM #(40-1),AR2
main_2: DELAY 50000 ;0.5ms * 40=20ms
BANZ main_2,*AR2-
CALL arp_request
*************************************************************
testt:
*
***************************************************************
ST #taskfree,*(task)
nop
nop
nop
nop
taskfree:
nop
nop
nop
nop
nop
nop
LDU *(task),A
nop
nop
BACC A
*
***************************************************************
*reveice process,have new packet
*
reveice_process:
*
arp: CMPM *(rxbuf.ethernet.protocal),#0x0608
NOP
NOP
BC ip,NTC
CALL arp_process
ST #taskfree,*(task)
B taskfree
ip: CMPM *(rxbuf.ethernet.protocal),#0x0008
NOP
NOP
CC ip_process,TC
ST #taskfree,*(task)
B taskfree
**********************************************************
.end
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -