MOV TMOD,#01H MOV TH0,#00H MOV TL0,#00H LOOP: JNB P3.3,$ SETB TR0 MOV 40H,TH0 MOV 41H,TL0 MOV DPH,40H MOV DPL,41H MOVX A, @DPTR SUBB A,#64H JNC LOOP SUBB A,#7DH JC LOOP CLR C MOV A,40H RLC A MOV 40H,A MOV A,41H RLC A MOV 41H,A MOV 42H,#40H MOV 43H,#41H LOOP1: MOV A,42H ADDC A,42H DA A MOV 42H,A MOV A,43H ADDC A,43H DA A MOV 43H,A DJNZ 42H, LOOP1 MOV A,42H ANL A,#0FH ORL 44H,A MOV 42H,A MOV A,42H SWAP A MOV A,42H ANL A,#0FH ORL 45H,A MOV A,43H ANL A,#0FH ORL 46H,A MOV 43H,A MOV A,43H SWAP A MOV A,43H ANL A,#0FH ORL 46H,A MOV R0,#7BH LOOP: MOV 7BH,#0EH MOV 7CH,#0EH MOV 7DH,#0EH MOV 7EH,#0EH MOVX @DPTR,A JB P3.3,$ CLR TR0 DIR: MOV R0,#7BH MOV R3,#01H MOV A,R3 LD0: MOV DPTR,#8002H MOVX @DPTR,A MOV DPTR,#8000H MOV A,@R0 DIR0: ADD A,#0DH MOVC A,@A+PC DIR1: MOVX @DPTR,A ACALL DL INC R0 MOV A,R3 JB ACC.3,LD1 RL A MOV R3,A AJMP LD0 LD1: RET DSEG: DB 3FH DB 06H DB 5BH DB 4FH DB 66H DB 6DH DB 7DH DB 07H DB 7FH DB 6FH DB 79H DL: END 这段程序对吗,你们帮我看下。跟上面那个题的 |