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

Find a way to properly allocate the size of String variables, instead of using the theoretical maximum of 64 words (256 bytes) #22

Open
supercom32 opened this issue Jan 24, 2018 · 0 comments
Labels

Comments

@supercom32
Copy link
Collaborator

supercom32 commented Jan 24, 2018

Issue identified in Dragon Basic as of commit ID 901c0e5.

In previous versions of Dragon Basic, Strings were allocated one word (4 bytes). From Uli's comments, there doesn't appear to be any way to specify the maximum size of a string variable. As a compromise, a patch was submitted so that we allocate the maximum of 64 words (256 bytes) instead. While this strategy indeed prevents data from being corrupted, it also wastes a bunch of memory as well. Since memory on the GBA is at a premium, we should probably try to find away to properly handle this in the future.

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

No branches or pull requests

1 participant