Illegal redefination of label

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Illegal redefination of label

2,179件の閲覧回数
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 返答(返信)

649件の閲覧回数
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 件の賞賛
返信

649件の閲覧回数
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 件の賞賛
返信