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

Optimize ROM/RAM usage: Let programs start at 0x2000 #7

Open
sy2002 opened this issue Jul 28, 2020 · 0 comments
Open

Optimize ROM/RAM usage: Let programs start at 0x2000 #7

sy2002 opened this issue Jul 28, 2020 · 0 comments
Assignees
Labels

Comments

@sy2002
Copy link
Owner

sy2002 commented Jul 28, 2020

Shrink the ROM, currently we could go from 0x0000 to 0x1FFF and still have plenty of room left and let programs start at 0x2000, instead of as this is the case today, from 0x8000 on.

TODO: Before starting with this issue, we need to make a list with obvious and not-so obvious ramifications. Examples:

  1. The ubiquitous usage of RBRA "everywhere" needs to be rethought: RBRA can only jump 32k words forward and backward. This does not matter, as long as programs start at 0x8000 but it does matter, when we switch to 0x2000. So in this example, the minimum we would need to do: Add a warning to the assembler, when one wants to RBRA farther ahead than possible and think again of other ramifiations.

  2. VBCC currently hardcodes 0x8000 at various places in the toolchain

  3. For sure there are a ton more of these nitty-grity details that follow from this issue, so handle with care (and preferably do it in a separate branch)

@sy2002 sy2002 added the V1.7 label Aug 5, 2020
@sy2002 sy2002 changed the title Optimize ROM/RAM usage Optimize ROM/RAM usage: Let programs start at 0x2000 Sep 17, 2020
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

2 participants