On Thu, 29 Oct 2015 15:46:10 -0500 Karl Kirch <karlk...@gmail.com> wrote:
> After some more investigating it looks like this may have something to do > with the ihx step in the linker. > It appears that the extended addressing (which seems to control the larger > address space) is only enabled for `TARGET_IS_8051` and `TARGET_IS_6808` > (see > http://sourceforge.net/p/sdcc/code/HEAD/tree/trunk/sdcc/sdas/linksrc/lkihx.c#l150 > ) > > Gonna fiddle with this a bit to see if that's the culprit for why the > address space is wrapping for gbz80. > > This is grasping at straws though... It wraps because the gbZ80 only has a 16bit address space, as well as the -r flag. Been there done that already when doing Z80 banking. I also started that way by hoping that adding 64K to each 'bank' would produce a binary that was linked properly but exportable easily. In the end however I had to modify the linker to output a new format with each bank linked at the same address (where it will be banked into) and output the banks to separate files. Alan ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user