Skip to content
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

Unexpected behaviour: label lengths #13

Open
phillipeaton opened this issue Jun 29, 2022 · 2 comments
Open

Unexpected behaviour: label lengths #13

phillipeaton opened this issue Jun 29, 2022 · 2 comments

Comments

@phillipeaton
Copy link

Consider the following:
image
Only 16 characters of the 0c label are being added to the output file.

If I comment out the following, or comment out one of the other of these settings:
image
It makes no difference, the first 16 characters are still displayed and used (though the formatting changes a bit).

If I comment out the following line:
image
then it works OK. In the previous examples, it's like it's overriding the 0c's label name with 0d's label name, but only 16 characters.
image

It's possible I'm using it wrong...maybe this is a feature, not a bug!

Whlist I'm typing...the reason I'm adding several labels for Zero Page addresses is that when an address in a range is encountered, dasmfw puts e.g. "ZP+123", where 123 is decimal. I'm much prefer hex, but I can't figure out a simple way to get it to output hex. I think I queried this with you before, but I can't remember the reason.

@Arakula
Copy link
Owner

Arakula commented Jun 30, 2022

You can either write
label 0d ZP_Color_RAM_PtrX+1
or tell dasmfw that multiple labels are allowed for an address by setting
option multilabel on

I'd suggest the first, however - using multiple labels for an address opens a can of very ugly worms.

@phillipeaton
Copy link
Author

Ignoring the multiple labels can of worms, I don't understand why the label 0d line overrides the label 0c before it, or why adding the X should resolve the problem. (It doesn't, see below.)

If I put this
image

dsamfw gives this, the +1 seems to give unexpected behaviour
image

I've managed to work around it anyway, as shown below
image

which gives me
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants