Jump to content

Bank switched 128K ROM header


Recommended Posts

I had to post this for atrax on FB earlier, but here you go, for anyone wanting the source code Stuart, Tursi and I made to bank switch a 128K ROM (i.e. Fred's Megamod cart with all three of his utilities). It should read well if you know assembly, if not, let Tursi or I know and we'll explain.


Source code: http://pastebin.com/LL1Lqm3t


Copy/pastable object code: http://pastebin.com/METtGvwy


All the routine does is take code in certain locations of the EPROM of a certain size, copy it to a certain address in 32K, switch to the next bank when it need to continue and has run out of data (obviously the data starts after the header), and continues to the next bank as needed, then branches to >A000 to start the program.


Enjoy. :)


  • Like 2
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.

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.

  • Recently Browsing   0 members

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