.include "register.def" ;Special Purpose Register define file
.include "eSLMacro.def" ;Macro define file
.GLOBAL POWERON
.CODE
.include "interruptvector.def" ;Define all interrupt labels
POWERON:
R0=#0X04
[R0]=#0X893A
R0--
[R0]=#0XABC1
R0--
[R0]=#0X0017
R1=#0X08
[R1]=#0X893A
R1--
[R1]=#0XABC1
R1--
[R1]=#0X0017
MAIN:
LOOP #1
R0=#0X04
R1=#0X08
R5=[R0]
R6=[R1]
[R0]=R5+R6
IF CS JMP NEXT1
R0--
R1--
R5=[R0]
R6=[R1]
[R0]=R5+R6
IF CS JMP NEXT3
R0--
R1--
R5=[R0]
R6=[R1]
[R0]=R5+R6
JMP EMD2
NEXT1:
R0--
R1--
R5=[R0]
R6=[R1]
[R0]=R5+R6+C
IF CS JMP NEXT3
R0--
R1--
R5=[R0]
R6=[R1]
[R0]=R5+R6
JMP EMD2
NEXT3:
R0--
R1--
R5=[R0]
R6=[R1]
[R0]=R5+R6+C
EMD2:
.ENDL
END:
JMP END
沒有留言:
張貼留言
文章有誤或有問題麻煩您留言告知! 謝謝您~~