Jump to content
IGNORED

.A26 file header?


Recommended Posts

Hello. Let me introduce myself. I'm RalphDSpam. I'm a bit new to the Atari2600 scene, but I am planning on programming a 2600 emulator. (Yes, I already know about the 6507, the TIA and the RIOT.)

 

I do not know much about the actual file format itself, though.

 

What is the header for the .a26 file? Does the header include the bankswitching method? If not, what is the best way to determine the bankswitching method?

 

Thanks. :)

Link to comment
Share on other sites

Then what's the best way of determining bankswitching methods?

I think they take a peek at the code and look for instructions that appear to be mapper commands (i.e. accesses to the memory locations associated with bankswitching). You should always offer a way for the user to pick the mapper though, just in case your detection method fails.

Link to comment
Share on other sites

I think they take a peek at the code and look for instructions that appear to be mapper commands (i.e. accesses to the memory locations associated with bankswitching). You should always offer a way for the user to pick the mapper though, just in case your detection method fails.

 

Thanks; I'll try that and see how it goes. :)

Link to comment
Share on other sites

There are two ways of finding out the bank switching method :-

 

- MD5 hash match (created from the ROM image) against a database of known hashes. When you find a match you know much more about the ROM image e.g. PAL/NTSC, company, controllers required etc.

- Heuristic analysis of the ROM image code. If the binary image is more than 4K in size then it needs to bank switch. Your code needs to look for bank switch hot spot access code sequences. You'll also have to check for code sequences that access on cart RAM too. If you want to support modern homebrew games you'll have to check for DPC+ (Melody/Harmony) ROM images and deal with them accordingly.

Link to comment
Share on other sites

Is there a place where I can find the MD5 hashes?

There is a large list of MD5 hashes here (this is a 9.9MB HTML file), but if you're wanting to use them in software that you plan on releasing to the public then it might be better to make your own hashes instead of copying another person's work (unless you get permission first). A couple of Windows programs that can do that are hkSFV and MD5summer, but there are other programs if you search around.

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...