Hello Karl, > 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 > )
I think you're on the right track here. This was my first thought as well: you must enable the larger address space. Look up the linker option(s) to do that and pass them to sdcc with -Wl,... I would not be surprised if you also have to enable something in the assembler (-Wa,...). It's been a long time since I played with banks and that was for the mcs51. Maarten > > 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... > > Karl ------------------------------------------------------------------------------ _______________________________________________ Sdcc-user mailing list Sdcc-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/sdcc-user