哈工大单片机原理与应用实验报告

DIS: PUSH DPH PUSH DPL SETB RS1 MOV R0,#7EH MOV R2,#20H MOV R3,#00H MOV DPTR,#LS0 LS2: MOV A,@R0

MOVC A,@A+DPTR MOV R1,#0DCH MOVX @R1,A MOV A,R2 inc R1 MOVX @R1,A LS1: DJNZ R3,LS1 CLR C RRC A MOV R2,A DEC R0 JNZ LS2 movx @r0,a dec r0 cpl a

movx @r0,a CLR RS1 POP DPL POP DPH RET

LS0: DB 0C0H,0F9H,0A4H,0B0H,99H,92H DB 82H,0F8H,80H,90H,88H,83H,0C6H

DB 0A1H,86H,8EH,0FFH,0CH,89H,7FH,0BFH END

-40-

-41-

联系客服:779662525#qq.com(#替换为@)