+SvOlli Posted June 16, 2012 Share Posted June 16, 2012 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. Quote Link to comment Share on other sites More sharing options...
+batari Posted June 16, 2012 Share Posted June 16, 2012 PM sent. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.