I guess this is fairly trivial but I read the WLA documentation and used search engines and I can't understand were the problem is,
So, if someone is kind enough to tell me what is wrong with this I will be very glad.
So, I have an .ENUM inside a .SECTION like this:
and then I have the same exact enum inside of another .SECTION
As far as I know the underscore makes the label local to the section were the .ENUM is,
So there shouldn't be any collisions with labels in other sections, yet WLA-DX says DIRECTIVE_ERROR: "_local_label" was defined for the second time.
Strangely enough, when using .ENUM, WLA-DX throws the DIRECTIVE_ERROR and doesn't generate any obj file, but if I use .DEFINE instead, it throws the same error but it does generate an object file ¿?
I also tried using @local_label and I got the same result.
There is anything I'm missing out?
So, if someone is kind enough to tell me what is wrong with this I will be very glad.
So, I have an .ENUM inside a .SECTION like this:
Code:
.SECTION "section name" SEMIFREE
.ENUM $00
_local_label dw
.ENDE
.ENDS
.ENUM $00
_local_label dw
.ENDE
.ENDS
and then I have the same exact enum inside of another .SECTION
As far as I know the underscore makes the label local to the section were the .ENUM is,
So there shouldn't be any collisions with labels in other sections, yet WLA-DX says DIRECTIVE_ERROR: "_local_label" was defined for the second time.
Strangely enough, when using .ENUM, WLA-DX throws the DIRECTIVE_ERROR and doesn't generate any obj file, but if I use .DEFINE instead, it throws the same error but it does generate an object file ¿?
I also tried using @local_label and I got the same result.
There is anything I'm missing out?