求该汇编语言的翻译,在线等ORG 0000H LJMP MAIN ORG 0050H MAIN: MOV TMOD, #01 ;令T0定时方式1 MOV TH0,
ORG 0000H
LJMP MAIN
ORG 0050H
MAIN:
MOV TMOD, #01 ;令T0定时方式1
MOV TH0, #3CH
MOV TL0, #0B0H ;50ms@12MHz
SETB TR0 ;启动T0
;--------------------------------------------
MOV R7, #20
CPL P1.0
M_LOOP:
JNB TF0, M_LOOP ;T0没有溢出,就在此循环不止.
CLR TF0
MOV TL0, #0B0H
MOV TH0, #3CH
DJNZ R7, M_LOOP ;溢出20次?
MOV R7, #20 ;才到1s
CPL P1.0
SJMP M_LOOP
中断定时:
ORG 00H
AJMP MAIN
ORG 0BH
AJMP T0INT
ORG 30H
MAIN: MOV TMOD,#01H ;定时器方式1
MOV TH0,#3CH ;50ms定时常数
MOV TL0,#0B0H
MOV R0,#20 ;中断20次,1s
SETB EA
SETB ET0
SETB TR0
AJMP $
T0INT: MOV TH0,#3CH
MOV TL0,#0B0H
DJNZ R0,RTI
MOV R0,#20
CPL P1.1 ;1s P1.1求反一次
RTI: RETI
追问:是想知道,那些语句的具体意思。谢谢这是个定时的汇编语言