QNICE-FPGA
QNICE-FPGA copied to clipboard
Optimize ROM/RAM usage: Let programs start at 0x2000
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:
-
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 at0x8000
but it does matter, when we switch to0x2000
. So in this example, the minimum we would need to do: Add a warning to the assembler, when one wants toRBRA
farther ahead than possible and think again of other ramifiations. -
VBCC currently hardcodes
0x8000
at various places in the toolchain -
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)