joajas
Junior Member level 1
using lcall in reads51
Hi, I am trying to assemble the following, but I keep getting error. Please help. Thanks.
#include <sfr51.inc>
ORG OOOOH
LJMP MAIN
ORG 0100H
MAIN: MOV R6,#60D
MOV TMOD,#10H
MOV R1,#100D
NEXT: MOV TH1,#B1H
MOV TL1,#E0H
SETB TR1
WAIT1: JNB TF1, WAIT1
CLR TR1
CLR TF1
DJNZ R1, NEXT
LJMP HERE
HERE: LJMP HERE
END
Error Messages:
"E:\timer test1.asm" 13 Undecodable line, Syntax error
"E:\timer test1.asm" 16 Undecodable line, Syntax error
"E:\timer test1.asm" 23 Incorrect operand types
Hi, I am trying to assemble the following, but I keep getting error. Please help. Thanks.
#include <sfr51.inc>
ORG OOOOH
LJMP MAIN
ORG 0100H
MAIN: MOV R6,#60D
MOV TMOD,#10H
MOV R1,#100D
NEXT: MOV TH1,#B1H
MOV TL1,#E0H
SETB TR1
WAIT1: JNB TF1, WAIT1
CLR TR1
CLR TF1
DJNZ R1, NEXT
LJMP HERE
HERE: LJMP HERE
END
Error Messages:
"E:\timer test1.asm" 13 Undecodable line, Syntax error
"E:\timer test1.asm" 16 Undecodable line, Syntax error
"E:\timer test1.asm" 23 Incorrect operand types