06-10-2019, 10:45 PM
It should be something like:
But this is not suported, precisely because the "+ compiled size of font.bas" is something VERY HARD to compute.
Basically what you're asking is a LINKER to compile several .bas files into .obj code and link them at a later stage.
This project will take time. I've been investigating (that the problematic part) current linkers and will try to make obj code compatible with the one used in SDCC. So people might perhaps link SDCC code with ZXBasic one.
The main obstacle is to take 128K models (and others!) memory maps and take them into account.
Code:
ASM
org <new-address>
incbin "file.bin"
END ASM
Basically what you're asking is a LINKER to compile several .bas files into .obj code and link them at a later stage.
This project will take time. I've been investigating (that the problematic part) current linkers and will try to make obj code compatible with the one used in SDCC. So people might perhaps link SDCC code with ZXBasic one.
The main obstacle is to take 128K models (and others!) memory maps and take them into account.