keil,程序编写的,大佬帮帮我解释这个程序
org0000hajmpmainorg0030h;************×óÓÒÒÆÁÁµ...
org 0000h
ajmp main
org 0030h
;************×óÓÒÒÆÁÁµÆ**********
main:mov p1,#11111110b
acall dly
mov a,p1
lop1:clr cy
rlc a;×óÒÆ
mov p1,a
acall dly
jb acc.7,lop1
lop2:setb cy
rrc a;ÓÒÒÆ
mov p1,a
acall dly
jnb acc.0,lop2
ajmp lop1
;*************ÑÓʱ0.5Ãë**************
dly:mov r5,#200
dly3:mov r7,#100
dly2:mov r6,#250
dly1:nop
nop
djnz r6,dly1
djnz r7,dly2
djnz r5,dly3
ret
end 展开
ajmp main
org 0030h
;************×óÓÒÒÆÁÁµÆ**********
main:mov p1,#11111110b
acall dly
mov a,p1
lop1:clr cy
rlc a;×óÒÆ
mov p1,a
acall dly
jb acc.7,lop1
lop2:setb cy
rrc a;ÓÒÒÆ
mov p1,a
acall dly
jnb acc.0,lop2
ajmp lop1
;*************ÑÓʱ0.5Ãë**************
dly:mov r5,#200
dly3:mov r7,#100
dly2:mov r6,#250
dly1:nop
nop
djnz r6,dly1
djnz r7,dly2
djnz r5,dly3
ret
end 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询