New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[65816/?] A Definition between 2 Sections that use it causes weird behavior #104
Comments
|
People should really define things BEFORE using them, that's just an assembler rule in general. Ville (not sure if you're still around), when does the assembler go back to fix these defines? Is it during linker stage, or could the proper opcode be selected by the assembler? |
|
On Tue, Apr 19, 2016 at 3:33 AM, Bazz notifications@github.com wrote:
|
|
On Tue, Apr 19, 2016 at 6:34 AM, nicklausw notifications@github.com wrote:
Absolutely. :)
If I remember correctly, assembler tries to solve a reference to a The assembler selects the opcodes and turns them into bits and bytes. The
|
|
Is there some kind of test that can be made in the assembler/linker so the user can be made aware when this situation exists? I can see it going over many people's heads that they have created this circumstance and unprepared for the mayhem it can cause. Please understand that this situation is what led several programmers to believe WLA-DX is a bad assembler. |
|
On Tue, Apr 19, 2016 at 9:17 AM, Bazz notifications@github.com wrote:
They are not very old programmers then as assemblers that can handle such Perhaps a message in the README would be enough? For the user it's just
|
|
Having this detailed in the README is imperative without any assembler/linker warnings. Think of all the n00bs who were just trying to learn to code their favorite console with WLA DX who made this mistake and silently blew things up and had no idea why their program never worked properly. This is likely to have happened to lots of people. I understand that the architecture of WLA-DX might make warning of such a circumstance difficult, but just realize we are allowing the user to unknowingly make mistakes, with terrible repercussions. |
|
On 19 Apr 2016 09:35, "Bazz" notifications@github.com wrote:
Ok, I'll write about this to README later today - it's my day off from day
I'm not sure if it's possible to tell the difference between a problematic
|
|
I like that idea! On Mon, Apr 18, 2016 at 11:09 PM, Ville Helin notifications@github.com
Michael Bazzinotti [image: Attleboro-low rez] http://locations.schoolofrock.com/attleboro |
|
I see that there is a note in the documentation about declaring .DEFINE before using it, and currently if you create the .DEFINE after using it in e.g., .DB, it'll get the last value of last .DEFINE/.REDEFINE: I think this solves this issue. If you think otherwise, please reopen this issue. |
Reference #102 -- After searching 12 pages of "wla dx" -- I found http://forums.nesdev.com/viewtopic.php?f=12&t=12268&p=139715&hilit=wla+dx#p139715
I managed to identify the cause and created a minimal bug_exhibition.
section_def_bug.zip
The beginning of
main.sdetails the bug:Possible Workarounds/Solutions:
The text was updated successfully, but these errors were encountered: