OBJect Files
Oxalium7
Posts: 5
Is there a document available that gives a detailed description of the format of the BASIC Stamp OBJ files? I can determine some of its format by looking at the file using a HEX Editor.
Is the checksum that is displayed when downloading to a Stamp really a checksum? Some people use checksum and CRC interchangeably.
From the numbers displayed it appears to be a 32-bit "checksum". Is that correct?
How is the "checksum" generated? Over what data contained in the OBJ file does the checksum get generated?
Is the checksum that is displayed when downloading to a Stamp really a checksum? Some people use checksum and CRC interchangeably.
From the numbers displayed it appears to be a 32-bit "checksum". Is that correct?
How is the "checksum" generated? Over what data contained in the OBJ file does the checksum get generated?
Comments
Jeff T.
The checksum Tracy includes in that BS2clone document is the block checksum over a single 16-byte block. There is no description of the "checksum" that gets reported in the dialog box before one downloads a Stamp using the OBJect file and the StampLoader or a standalone executable.
The OBJect file also contains a "header". Some of in this "header" information gets display in the "Parallax, Inc. - BASIC Stamp Loader v2.7" dialog box: Product, Firmware, Checksum, Compile Date and Notes.
I had attempted to contact Brian Forbes to find out if his Inside Stamp II book contained the information I sought. I have not received a reply to my email. I also noticed that though Brian's website is still accessible, it appears that no updates have been made to it since 2005.
The reason that I'm asking these questions is that I am attempting to reconstruct a damaged OBJect file. This file contained the object code for seven slots. I have source for some of the slots. That's my main problem - I only have source code for some of the slots. I even have the captured contents from a Stache, which is no longer working for some reason. I have gotten quite far at reconstructing the OBJect file piecing together the object code generated from the source files and the object code captured from the Stache. However, without generating the proper "checksum", the StampLoader will complain and not download the file.
At some point, I will attempt to recreate the missing source code. I just figured that I had all the parts I needed to quickly reconstruct an object file and postpone the attempt to recreate the missing source code.