This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Choose code bank automatically!?

I have specified 16 code banks, each ranging from 0x8000-0xFFFF.
Now instead of having to specify which code bank to use for each source file/module, I'm
searching for an option/directive that would let the linker make that choice automatically.

Thanks in advence

Søren Abildtrup

Hardware:

PK51 package.

CPU: Atmel 80C32X2

ROM 4Mbit

XDATA port 200h used for bank-select.


  • Why struggle with a workaround for a problem that is, effectively, already solved?!

    In the days when memory - and processors that could address it - were expensive and hard to get, it made some sense abuse 8-bit processors like this to circumvent their inherent architectural limitations.

    But those days are long gone!