Illegal redefination of label

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

Illegal redefination of label

2,526 次查看
muskut
Contributor I
hi all,

I have a problem but I cannot find what the wrong is. I determined 2 subroutine programs. They are;

.
..
...
sub1:
mov #11, var1
rts

sub2:
mov #12, var1
rts
...
..
.

when I make the program, an error seems which is "Illegal redefination of label" and the arrow of the compiler is focusing the second subroutine's "rts" line. I dont understand what it the problem? I am using rs08 mcu.
标签 (1)
0 项奖励
回复
2 回复数

996 次查看
CrasyCat
Specialist III

Hello

Do you have at least a space or a tab in front of your RS08 assembler instructions?

Usually it is common practice over macro-assembler language to have only labels starting on column 1.

CrasyCat

0 项奖励
回复

996 次查看
muskut
Contributor I
You are right. The problem was the tab spaces. I have been programming about for 6 years and I have never seen like this problem :smileyhappy: interesting. Thank you so much.
0 项奖励
回复