main.asm
来自「应用松翰母体写的一款电磁炉」· 汇编 代码 · 共 50 行
ASM
50 行
;-----------------------------------------------
;******************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
;**************************************************
;***************************************************
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 + =
减小字号Ctrl + -
显示快捷键?