Illegal redefination of label

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Illegal redefination of label

1,927 Views
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.
Labels (1)
0 Kudos
2 Replies

397 Views
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 Kudos

397 Views
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 Kudos