Am 31.08.2013 15:51, schrieb Michael Hawkins:
> The 8051 has built in support for bank switching.
> 
> The Z80 does not.
> 
> SDCC has support for 8051 bank switching.
> 
> Z80 bank switching (and for other CPU's that don't natively support it)
> is usually done with a simple latch circuit.
> 
> Why can't SDCC provide Z80 with bank switching support? If I had to do
> it myself, what files in the Z80 would I need to modify? Which files in
> 8051 provide the bank switching?

sdcc provides some support. See the section on named address spaces in
the manual.
Esentially, you have to provide a function that switches to a specific
bank, and tell sdcc which variable is meant to go into which bank. Then
sdcc will insert the function calls for you.

Philipp


------------------------------------------------------------------------------
Learn the latest--Visual Studio 2012, SharePoint 2013, SQL 2012, more!
Discover the easy way to master current and previous Microsoft technologies
and advance your career. Get an incredible 1,500+ hours of step-by-step
tutorial videos with LearnDevNow. Subscribe today and save!
http://pubads.g.doubleclick.net/gampad/clk?id=58040911&iu=/4140/ostg.clktrk
_______________________________________________
Sdcc-user mailing list
Sdcc-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/sdcc-user

Reply via email to