程序摘要:COM_ADD XDATA 0F003H
PA_ADD XDATA 0F000H
PB_ADD XDATA 0F001H
PC_ADD XDATA 0F002H
ORG 0000H
LJMP STAR
ORG 0100H
STAR: MOV SP,#60H
MOV DPTR,#COM_ADD
MOV A,#80H ;PA、PB、PC为基本输出模式
MOVX @DPTR,A
MOV DPTR,#PA_ADD ;灯全熄灭
MOV A,#0FFH
MOVX @DPTR,A
START1: MOV A,#37H
程序下载:
|