Jump to content
Larry

OS Checksum re-calculator?

Recommended Posts

Is there a utility to re-calculate (and insert in the OS file) a new checksum after making changes?  (The question about moving the left margin got me to think about this.)  A BASIC tool would be really nice.

 

 

  • Like 2

Share this post


Link to post
Share on other sites

Let me add a twist to the original question:

How are the Atari rom checksums calculated?

Are the checksum bytes themselves included in the calculated checksums? 

 

Edit: I was evidently interested in this about 10 years ago, so there is an earlier thread about this topic. Here is that thread:

 

 

  • Like 1

Share this post


Link to post
Share on other sites

Yes, probably is, but I'd like to understand it.

 

But since you mention removing the validity check, can someone show the bytes to replace?

 

 

Share this post


Link to post
Share on other sites

If you want to learn about checksums, you could look at this tool. It does a whole bunch of them...

http://rehash.sourceforge.net/

It might be that if you run it against the OS ROM (-checksum) one of them will match.

 

Though pretty sure someone here probably knows the actual function offhand and its simple.

 

  • Like 2

Share this post


Link to post
Share on other sites

You'd want to retain the checksum (validation from within the OS doesn't much matter) because there's still that odd bit of software (mainly Electronic Arts?) that does it's own validation (though possibly it just checks against hardcoded values for the 400/800 only)

Share this post


Link to post
Share on other sites
7 hours ago, Rybags said:

You'd want to retain the checksum (validation from within the OS doesn't much matter) because there's still that odd bit of software (mainly Electronic Arts?) that does it's own validation (though possibly it just checks against hardcoded values for the 400/800 only)

But then you'd have to endure red ROM bars in the XL self test.... :dunce:

For those few titles I'd just temporarily switch back to the stock OS.

Share this post


Link to post
Share on other sites

kr0tki about the algorithm, used by 400/800 OS:

 

A tool by HiassofT to set the checksum in XL OSs:

 

  • Like 2

Share this post


Link to post
Share on other sites

I "poached" this link from the Zero Left Margin? thread. Has some good info for here too.

 

 

  • Like 1

Share this post


Link to post
Share on other sites
On 12/27/2020 at 12:45 PM, Larry said:

Is there a utility to re-calculate (and insert in the OS file) a new checksum after making changes?  (The question about moving the left margin got me to think about this.)  A BASIC tool would be really nice.

Not Basic, but here is a C source which does that:

 

checksum.c

  • Like 4

Share this post


Link to post
Share on other sites
2 hours ago, thorfdbg said:

Not Basic, but here is a C source which does that:

 

checksum.c 1.6 kB · 3 downloads

Thanks. I probably can read the source code and figure out what it's doing, but do you by chance also have a compiled version in Atari format?  I haven't dabbled with C for probably 30 years. 

Share this post


Link to post
Share on other sites
9 minutes ago, Larry said:

Thanks. I probably can read the source code and figure out what it's doing, but do you by chance also have a compiled version in Atari format?  I haven't dabbled with C for probably 30 years. 

Larry why not go with the link that @DjayBee provided to the @HiassofT solution. I've used it under Linux with a virtual XP OS and it does the trick, no fuss no muss ;-) . Should work with most any Windows system, and probably also with Wine.

Share this post


Link to post
Share on other sites
Posted (edited)

My Atari ROM Checker download has been enhanced with and the "Atari ROM Patcher" tool to display, compute and fix OS checks sums for Atari XL/XE computers. It can also be used to swap the floating-poing package. The tool is written in Atari BASIC and starts automatically when the disk is booted. Also, typos and swapped columns in the documentation have been fixed. Also, the disk images are now single density, so they also work on Atari 810.

 

EDIT: Fixed incorrect TRAP that would skip loading the FP ROM in case you enter a wrong file name.

 

atarirompatcher.png

 

Edited by JAC!
  • Like 7
  • Thanks 1

Share this post


Link to post
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...