Mình mới tìm hiểu về 8051, sau khi mình làm file notepad rồi đổi thành đuôi.asm rùi vứt vô ASM51.exe thì có mấy cái lỗi khá khó hiểu với SCON, TMOD, RI, ACC,... thì ra error #2. AI bik lỗi này chỉ mình với.
2000 750052 2 MOV scon,#52H
****----------------------------^
****ERROR #2: Undefined symbol
2003 750020 3 MOV tmod,#20H
****----------------------------^
****ERROR #2: Undefined symbol
2006 7500FD 4 MOV th1,#-3
****----------------------------^
****ERROR #2: Undefined symbol
2009 D200 5 SETB tr1
****-----------------------------^
****ERROR #2: Undefined symbol
200B 6 MAIN:
200B 7 INCHAR:
200B 3000FD 8 JNB RI, INCHAR
****----------------------------^
****ERROR #2: Undefined symbol
200E C200 9 CLR RI
****----------------------------^
****ERROR #2: Undefined symbol
2010 E500 10 MOV A, SBUF
****-------------------------------^
****ERROR #2: Undefined symbol
2000 750052 2 MOV scon,#52H
****----------------------------^
****ERROR #2: Undefined symbol
2003 750020 3 MOV tmod,#20H
****----------------------------^
****ERROR #2: Undefined symbol
2006 7500FD 4 MOV th1,#-3
****----------------------------^
****ERROR #2: Undefined symbol
2009 D200 5 SETB tr1
****-----------------------------^
****ERROR #2: Undefined symbol
200B 6 MAIN:
200B 7 INCHAR:
200B 3000FD 8 JNB RI, INCHAR
****----------------------------^
****ERROR #2: Undefined symbol
200E C200 9 CLR RI
****----------------------------^
****ERROR #2: Undefined symbol
2010 E500 10 MOV A, SBUF
****-------------------------------^
****ERROR #2: Undefined symbol
Comment