📄 run.asm
字号:
lcall display
lcall display
lcall display
wo04: jb chang,shan1end
mov LEDBUF+7,#0
shan1end : lcall clear
ret
;方式2
shan2: lcall clear
mov a,keytimest3
cjne a,#08h,mm
lcall fsh
mm: jb qing,pq0
mov LEDBUF+7, #23h
lcall display
jb fshst,pq0
lcall display
lcall display
lcall display
lcall display
pq0: jb chang,ma0
mov LEDBUF+7, #0
ma0: lcall clear
mov a,keytimest3
cjne a,#07h,mm1
lcall fsh
mm1: jb qing,pq1
mov LEDBUF+6,#1ch
lcall display
jb fshst,pq1
lcall display
lcall display
lcall display
lcall display
pq1: jb chang,ma1
mov LEDBUF+6,#0
ma1: lcall clear
mov a,keytimest3
cjne a,#06h,mm2
lcall fsh
mm2: jb qing,pq2
mov LEDBUF+5,#23h
lcall display
jb fshst,pq2
lcall display
lcall display
lcall display
lcall display
pq2: jb chang,ma2
mov LEDBUF+5,#0
ma2: lcall clear
mov a,keytimest3
cjne a,#05h,mm3
lcall fsh
mm3: jb qing,pq3
mov LEDBUF+4,#1ch
lcall display
jb fshst,pq3
lcall display
lcall display
lcall display
lcall display
pq3: jb chang,ma3
mov LEDBUF+4,#0
ma3: lcall clear
mov a,keytimest3
cjne a,#04h,mm4
lcall fsh
mm4: jb qing,pq4
mov LEDBUF+3,#23h
lcall display
jb fshst,pq4
lcall display
lcall display
lcall display
lcall display
pq4: jb chang,ma4
mov LEDBUF+3,#0
ma4: lcall clear
mov a,keytimest3
cjne a,#03h,mm5
lcall fsh
mm5: jb qing,pq5
mov LEDBUF+2,#1ch
lcall display
jb fshst,pq5
lcall display
lcall display
lcall display
lcall display
pq5: jb chang,ma5
mov LEDBUF+2,#0
ma5: lcall clear
mov a,keytimest3
cjne a,#02h,mm6
lcall fsh
mm6: jb qing,pq6
mov LEDBUF+1,#23h
lcall display
jb fshst,pq6
lcall display
lcall display
lcall display
lcall display
pq6: jb chang,ma6
mov LEDBUF+1,#0
ma6: lcall clear
mov a,keytimest3
cjne a,#01h,mm7
lcall fsh
mm7: jb qing,pq7
mov LEDBUF,#1ch
lcall display
jb fshst,pq7
lcall display
lcall display
lcall display
lcall display
pq7: jb chang,ma7
mov LEDBUF,#0
ma7: lcall clear
ret
;方式3
shan3: lcall clear
mov a,keytimest3
cjne a,#05h,oa1
lcall fsh
oa1: jb qing,ob1
mov LEDBUF+4, #63h
lcall display
jb fshst,ob1
lcall display
lcall display
lcall display
lcall display
ob1: jb chang,oc1
mov LEDBUF+4, #0
oc1:
lcall clear
mov a,keytimest3
cjne a,#04h,oa2
lcall fsh
oa2: jb qing,ob2
mov LEDBUF+3,#63h
lcall display
jb fshst,ob2
lcall display
lcall display
lcall display
lcall display
ob2: jb chang,oc2
mov LEDBUF+3,#0
oc2:
lcall clear
mov a,keytimest3
cjne a,#06h,oa3
lcall fsh
oa3: jb qing,ob3
mov LEDBUF+5,#5ch
lcall display
jb fshst,ob3
lcall display
lcall display
lcall display
lcall display
ob3: jb chang,oc3
mov LEDBUF+5,#0
oc3:
lcall clear
mov a,keytimest3
cjne a,#03h,oa4
lcall fsh
oa4: jb qing,ob4
mov LEDBUF+2,#5ch
lcall display
jb fshst,ob4
lcall display
lcall display
lcall display
lcall display
ob4: jb chang,oc4
mov LEDBUF+2,#0
oc4:
lcall clear
mov a,keytimest3
cjne a,#07h,oa5
lcall fsh
oa5: jb qing,ob5
mov LEDBUF+6,#63h
lcall display
jb fshst,ob5
lcall display
lcall display
lcall display
lcall display
ob5: jb chang,oc5
mov LEDBUF+6,#0
oc5:
lcall clear
mov a,keytimest3
cjne a,#02h,oa6
lcall fsh
oa6: jb qing,ob6
mov LEDBUF+1,#63h
lcall display
jb fshst,ob6
lcall display
lcall display
lcall display
lcall display
ob6: jb chang,oc6
mov LEDBUF+1,#0
oc6:
lcall clear
mov a,keytimest3
cjne a,#08h,oa7
lcall fsh
oa7: jb qing,ob7
mov LEDBUF+7,#5ch
lcall display
jb fshst,ob7
lcall display
lcall display
lcall display
lcall display
ob7: jb chang,oc7
mov LEDBUF+7,#0
oc7:
lcall clear
mov a,keytimest3
cjne a,#01h,oa8
lcall fsh
oa8: jb qing,ob8
mov LEDBUF,#5ch
lcall display
jb fshst,ob8
lcall display
lcall display
lcall display
lcall display
ob8: jb chang,oc8
mov LEDBUF,#0
oc8: lcall clear
ret
;方式4
shan4: lcall clear
mov a,keytimest3
cjne a,#01h,la1
lcall fsh
la1: jb qing,lb1
mov LEDBUF, #73h
lcall display
jb fshst,lb1
lcall display
lcall display
lcall display
lcall display
lb1: jb chang,lc1
mov LEDBUF, #0
lc1: lcall clear
mov a,keytimest3
cjne a,#08h,la2
lcall fsh
la2: jb qing,lb2
mov LEDBUF+7,#67h
lcall display
jb fshst,lb2
lcall display
lcall display
lcall display
lcall display
lb2: jb chang,lc2
mov LEDBUF+7,#0
lc2: lcall clear
mov a,keytimest3
cjne a,#02h,la3
lcall fsh
la3: jb qing,lb3
mov LEDBUF+1,#5eh
lcall display
jb fshst,lb3
lcall display
lcall display
lcall display
lcall display
lb3: jb chang,lc3
mov LEDBUF+1,#0
lc3: lcall clear
mov a,keytimest3
cjne a,#07h,la4
lcall fsh
la4: jb qing,lb4
mov LEDBUF+6,#7ch
lcall display
jb fshst,lb4
lcall display
lcall display
lcall display
lcall display
lb4: jb chang,lc4
mov LEDBUF+6,#0
lc4: lcall clear
mov a,keytimest3
cjne a,#03h,la5
lcall fsh
la5: jb qing,lb5
mov LEDBUF+2,#73h
lcall display
jb fshst,lb5
lcall display
lcall display
lcall display
lcall display
lb5: jb chang,lc5
mov LEDBUF+2,#0
lc5: lcall clear
mov a,keytimest3
cjne a,#06h,la6
lcall fsh
la6: jb qing,lb6
mov LEDBUF+5,#67h
lcall display
jb fshst,lb6
lcall display
lcall display
lcall display
lcall display
lb6: jb chang,lc6
mov LEDBUF+5,#0
lc6: lcall clear
mov a,keytimest3
cjne a,#04h,la7
lcall fsh
la7: jb qing,lb7
mov LEDBUF+3,#5eh
lcall display
jb fshst,lb7
lcall display
lcall display
lcall display
lcall display
lb7: jb chang,lc7
mov LEDBUF+3,#0
lc7: lcall clear
mov a,keytimest3
cjne a,#05h,la8
lcall fsh
la8: jb qing,lb8
mov LEDBUF+4,#7ch
lcall display
jb fshst,lb8
lcall display
lcall display
lcall display
lcall display
lb8: jb chang,lc8
mov LEDBUF+4,#0
lc8: lcall clear
ret
;在闪时清0或常亮
fsh: setb fshst
mov a,keytimest4
cjne a,#01h,heng
setb qing
jmp fshend
heng: cjne a,#02h,fshend
setb chang
fshend: ret
;闪状态标志位清0
clear: clr fshst
clr qing
clr chang
ret
END
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -