As .launcher is not supported on the Next, as the addition of the Next opcodes to the Specasm binary will require some sort of paging to get everything to fit and as dotx files require a CLEAR to use, I'd like to convert all the existing binaries to dotn files for use on the Next. I've been able to rebuild the two smaller dotx files (saimport and saexport) as dotn files and these build and run fine on the Next. Unfortunately, I can't figure out how to convert the two larger binaries to dotn files. When I compile them I get an error that looks something like this
Code: Select all
Error: Section MAIN exceeds 64k [0x8000,0x10329]
zxn: Aborting... one or more binaries overlap
Building application code failed
Code: Select all
zcc +zxn -SO3 --opt-code-size --max-allocs-per-node200000 -Cs "--disable-warning 85" -clib=sdcc_iy -m -startup=31 -o SALINK salink.o error.o expression.o state_base.o peer_file_next.o util_print_zx.o peer_next.o -subtype=dotn -Cz"--clean" -create-app
Can anyone explain how to write large dotn files or point me to some existing examples? Do I need to implement some manual paging mechanism to get this to work? How would I go about doing that?
Any help or advice would be greatly appreciated.