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

Length of EQU name limit? #102

Open
richardturnnidge opened this issue Dec 10, 2024 · 7 comments
Open

Length of EQU name limit? #102

richardturnnidge opened this issue Dec 10, 2024 · 7 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@richardturnnidge
Copy link

richardturnnidge commented Dec 10, 2024

Is there a limit on chars in an EQU?

Trying to debug someone else's code and the build fails error 5 trap, or something like that. Sounds like too much trying to get into too little space.

If so, just add name limit to docs??

May just be similar to file name lengths issues we had.

UPDATE. Seems to fail if more than 32 chars. Feels like a suspicious number!! ;-)

This works:
VDU_5678901234567890123456789012: equ 136

This does not:
VDU_56789012345678901234567890123: equ 136

./build.sh: line 24: 62385 Trace/BPT trap: 5 /usr/local/bin/ez80asmm4 "$1" "-l" "-x"

@envenomator
Copy link
Owner

envenomator commented Dec 10, 2024

There is a maximum limit of 32 characters on a label. I'll put it in the docs - b0a7bce

@envenomator envenomator added the documentation Improvements or additions to documentation label Dec 10, 2024
@envenomator envenomator self-assigned this Dec 10, 2024
@richardturnnidge
Copy link
Author

richardturnnidge commented Dec 10, 2024

Good call. Glad that was the likely culprit :-)

I guess that is ANY label?

BTW, I think I may have had this issue myself ages ago, only just coming back into my memory!!!

@envenomator
Copy link
Owner

Any global label indeed; I'll need to check the size maximums for local labels after the @ next

@envenomator
Copy link
Owner

Yes, the same, though technically they might work with longer names depending on their scope. However, supported up to and including 32 characters, updated the docs

@envenomator
Copy link
Owner

These are BIG-ass labels ;-)

@richardturnnidge
Copy link
Author

He was using things like this:

VDU_SCREENMODE_640x240x16_60HZ_DB: equ 132

which is big, but understandable.

@richardturnnidge
Copy link
Author

richardturnnidge commented Dec 10, 2024

Totally unrelated, but as I have no other way to contact you anymore, just wondering if you might have any thoughts on my i2c issues and if my thoughts on this 'bug' makes sense???

AgonConsole8/agon-mos#118

Not expecting you to fix it, just see if my idea/suspicions seems logical.

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

No branches or pull requests

2 participants