Mustafa KUTLU

Illegal redefination of label

Discussion created by Mustafa KUTLU on Aug 15, 2006
Latest reply on Aug 15, 2006 by Mustafa KUTLU
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.

Outcomes