kierenj / 0x10c-DevKit

0x10c DevKit
http://0x10c-devkit.com/
39 stars 4 forks source link

Multiple labels of the same name #127

Closed ghost closed 12 years ago

ghost commented 12 years ago

It doesn't seem to stop you, or even warn you if you have the same label in two places.

kierenj commented 12 years ago

In two files this is allowed - is it an issue in a single file?  would it be possible to post a little code? Just tried a quick test and it was OK? Thanks!

Sent from Samsung Galaxy Note

-------- Original message -------- Subject: [0x10c-DevKit] Multiple labels of the same name (#127) From: DarkChowder reply@reply.github.com To: Kieren Johnstone kierenj@gmail.com CC:

It doesn't seem to stop you, or even warn you if you have the same label in two places.


Reply to this email directly or view it on GitHub: https://github.com/kierenj/0x10c-DevKit/issues/127

ghost commented 12 years ago

:inf_loop set pc, inf_loop :inf_loop :inf_loop :inf_loop :inf_loop set A, 5; set pc, inf_loop

It seems the last label is the one it uses

kierenj commented 12 years ago

Ah, wow. This relates to the other bug I raised last night with 'major labels'.. it will be fixed at the same time, which is top priority for the project. We'll add some unit tests to make sure errors are thrown when this happens (so we won't have the problem again ever). Thanks for the feedback.

kierenj commented 12 years ago

Fixed for the next release!