📄 main.asm
字号:
;-----------------------------------------------
;******************Program code segment*********
;-----------------------------------------------
.CODE
ORG 000h ;Code section start
jmp Start ;Reset vector
;Address 4 to 7 are reserved
ORG 008h
jmp InterruptSub ;Interrupt vector
ORG 010h
;**************************************************
;***************************************************
reset:
Start:
nop
nop
call Pdelay ;//Power on delay
;-----
b0bts1 fnt0
jmp wdtresetsub ;//watch dog reset way,no need initialize
;-----
TurnOnInitial:
call PortInitial
call RAMInitial
call SysInitial
;-----
wdtresetsub:
;**********************************************
MainLoop:
;//User need write the main routine Program.
nop
@RST_WDT ;//User can use Macro instrution REST_WATCHDOG
call mnchecktime
call mnintgnd ;//interface between interrupt and main
mainloop00:
call mndisplay
call mntwinkle
call mnkey ;//Interface between machine and human
call mnapp
jmp MainLoop
;*****************************************************
;*****************************************************
;*****************************************************
mnchecktime:
mnchecktime90:
ret
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -