ORG 0 MAIN:MOV SP,#60H MOV TMOD,#05H SETB TR0 MOV DPTR,#0FF90H RDTM:MOV A,TH0 MOV R0,TL0 CJNE A,TH0,RDTM MOV A,R0 CPL A MOVX @DPTR,A LJMP RDTM END