这段程序没读懂,谁有空哈哈考虑帮我看看哈
ORG 00H SJMP START START: MOV SP,#5FH MOV DPTR,#7FFFH MAIN: MOV R0,#2 MOV A,#00H PUSH A CESHI: JNB P3.2,LOOP AJMP BACK LOOP: POP A MOVX @DPTR,A INC A PUSH A XRL A,#0FFH JNZ CESHI BACK: JNB P3.2,FAI DJNZ R0,DECI AJMP AVE FAI: MOV A,#00H PUSH A AJMP LOOP DECI: POP A DEC A CJNE A,#00H,NIG PUSH A AJMP LOOP NIG: MOVX @DPTR,A PUSH A JNB P3.2,ADJUST AJMP DECI ADJUST: POP A MOV R1,A AJMP CESHI AVE: MOV R7,#10 AJMP DELAY LOOP1: MOV A,R1 MOV B,#2 DIV AB MOVX @DPTR,A JB P3.2,$ PUSH A MOV R0,#2 AJMP CESHI DELAY: ;延时子程序 A1: MOV R6,#100 A2: MOV R5,#200 A3: NOP NOP NOP DJNZ R5,A3 DJNZ R6,A2 DJNZ R7,A1 AJMP LOOP1 跳转来跳转去,我都不知道A里面存了什么宝贝? 头晕~~~~~~~谁帮我分析,以后见你贴我就狂顶~~~~~~~~~~~~~~~~哈哈 |
|