138.asm
来自「abel语言的相当优秀实例多媒体教程!这个在网上很少见的。」· 汇编 代码 · 共 45 行
ASM
45 行
ORG 00H
st: clr P2.0
clr P2.1 ;1
setb P2.2
call delay
clr P2.0
setb P2.1 ;2
clr P2.2
call delay
clr P2.0
setb P2.1 ;3
setb P2.2
call delay
SETB P2.0
CLR P2.1 ;4
clr P2.2
call delay
SETB P2.0
CLR P2.1 ;5
setb P2.2
call delay
SETB P2.0
setb P2.1 ;6
clr P2.2
call delay
SETB P2.0
setb P2.1 ;7
setb P2.2
call delay
jmp st
DELAY: MOV R4,#20H ;延时;//
D1: MOV R6,#20H
D2: MOV R5,#248 ;//
DJNZ R5,$ ;//
DJNZ R6,D2 ;//
DJNZ R4,D1
RET
END
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?