modules do not have reusable label support ok that's not really a bug, but maybe they should have reusablelabel support, and it would be cool if they also had the underscore-access-modifier-thingie for nested modules

I have no idea how these things are handled though, so this may be impossible/way too hard.

I see what you mean for the first part, then. No, reusable labels work inside modules, but the names of modules must be explicitely declared.

If you are accessing modules outside of your own, you can use the "parent" keyword (so parent.x will access label x in the module that contains the current one). If you need to import the labels from one module into your own, see the using directive.

If you have a label that you want to be accessible everywhere, use the .global directive.

The module code is a horrible mess as it needs to support both TASM modules and nested modules. Brass 2 will only internally support the nested module system, though it should be possible to use TASM-style modules on top of that.

I understand the module system as it is, labels can be local but modules can not, they are just there.

actually, I did some thinking (not a lot though) and modules don't need to be local/global because of their unique names. But, if they can have reusable names then it would be needed to 'skip' a module in the +/- list because it's local to its parent module.

Bug in syntax colouring:
WrongColour.pngit happened after I selected the piece of code preceding it, rightclicked it, and clicked "delete".
When doing something to the lines affected (all down till the bottom btw, and the selected section came BEFORE the label) they recolored correctly.

Sorry to necropost or even bother telling but I've no idea what else to do with it...

I found a possible bug and 2 inconveniences in Brass:

Error: Fatal assembly error (unidentified previous instruction). [sdr.inc:280]
-> Suddenly appeared from nowhere... I have not touched the file when the error appeared...
instructions:
line:278 dec a
line:279 jp nz, _aloop
line:280 jp _done
only some .endmodule's after that

Error: Error in file 'Include\\sdr.inc' [puzzact.z80:280]
-> That file isn't even 280 lines long... I think you mistook the line in the file with the source file.

And last but not least: I couldn't find anything on 'what to do if you get an error' in the 'Brass Manual'

Instructions are queued up in the first pass then assembled properly in the second pass. If the queue isn't filled correctly, or too many instructions are read for whatever reason the assembler crashes. It's a text parsing bug somewhere, and I can't solve it without the source, sorry.

Hehe thanks, I new something like that HAD to happen. (It seems that when I wanted to save I pressed Ctrl-s but I released Ctrl before s wich caused an extra s to append) it happened a few times before but brass always gave me the correct file and line where I mistyped.

I'm gonna take extra care from now on when quick saving my files. Thanks again Ben!

If something like this happens I always play with the error, I slightly changed some stuff and see if the error still happens:if I change all "str_hl2" into "_str_hl2" then everything works fine (with and without the .(end)local directives)I checked thisfrom the brass manual and I suppose that what I want is completely legal (wich is why I think it's a bug)

Who is online

Users browsing this forum: No registered users and 2 guests

You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum