Currently trying to get SDCC up and running on some gameboy dev and am
trying to get multi bank support working.
I can get code up and running in a single bank and can get the compiler to
generate the correct code segment code using `#pragma bank 1` (will
generate `.area _CODE_1`.
The problem I'm seeing is at the linking stage. I want to put the bank 1
code outside of the 0xFFFF address space so that it can later be swapped in
by the MBC. When I go to set the location via `-Wl-b_CODE_1=0x10000` all
this does is wrap the code location back to 0x0000. Even when I don't set
the location explicitly I end up getting a location of 0xC131 which causes
makebin to explode because the rom size is > 32kb

Am I missing something here? or are >32kb roms just unsupported by SDCC?

Thanks,
Karl
------------------------------------------------------------------------------
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to