Jump to content
IGNORED

SDK for bankswitching available?


SvOlli

Recommended Posts

Hello,

 

I've got already the ARM compiler set up (from another ARM based microcontroller project), but is there some example code around on how one would implement a bankswitch-scheme?

 

Here's what I've come up with, it's some kind of mixture of Parker Bros and 3E/3F:

 

The ROM contains for 1k slices. The last kilobyte is always taken from the end of the ROM. The other three are selectable by writing to three hotspots $2d,$2e,$2f.

  • Writing a value from $00 to $7f there selects a ROM bank from the Harmony (bank 0 will contain the ARM code).
  • Writing a value from $80 to $bf will bank RAM there in read-only mode.
  • Writing a value from $c0 to $ff will select the same RAM bank in write-only mode.

This would allow a great flexibility without crossing the border on using the ARM for calculations or code injection like the DPC+.

 

So before I start re-inventing the wheel, I wanted to ask what's available. In theory it should be really just merging the code of the CommaVid (RAM access), Parker Bros (slices) and 3F (hotspot in ZP). I've already got Darrell's code for the DPC+ but was hoping that there's something less complex available.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...