?? led2.asm
字號(hào):
.sect ".vectors"
b start
.text
.include "x24x_app.h"
.global start
start:
ldp #0e0h
splk #6fh,WDCR
splk #5555h,WDKEY
splk #0AAAAh,WDKEY
loop_main
ldp #0
splk #1,60h
out 60h,100h
splk #1,60h
out 60h,100h
call delay
splk #2,60h
out 60h,100h
splk #2,60h
out 60h,100h
call delay
splk #4,60h
out 60h,100h
splk #4,60h
out 60h,100h
call delay
splk #8,60h
out 60h,100h
splk #8,60h
out 60h,100h
call delay
splk #10h,60h
out 60h,100h
splk #10h,60h
out 60h,100h
call delay
splk #20h,60h
out 60h,100h
splk #20h,60h
out 60h,100h
call delay
splk #40h,60h
out 60h,100h
splk #40h,60h
out 60h,100h
call delay
splk #80h,60h
out 60h,100h
splk #80h,60h
out 60h,100h
call delay
b loop_main
delay:
lar ar1,#1A00h
loop:
rpt #255
nop
banz loop,ar1
ret
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -