Jump to content
IGNORED

How to compare files on one disk vs another disk?


Keatah

Recommended Posts

For curating and de-duping purposes, how would one go about comparing a series of files on 2 .DSK images?

 

For example:

 

DiskA.dsk has 5 files and DiskB.dsk has 5 files, same names, same filesizes.

 

What would be the best way to compare those 5 files and be sure they're the same? Copy II+ in an emulator? Extract via Ciderpress and then compare in Windows checksum? It'd be nice if CP had a checksum feature, but it does not.

 

Any other ideas that would be more efficient and faster? Less tedious?

Link to comment
Share on other sites

  • 3 months later...

It's probably most likely applesoft files that you are comparing, since binary files with the same file name rarely change in size unless you are doing programming.

 

It is also extremely rare that modifying an applesoft program will result in the exact same file size as the original.

 

So, probably the easiest method to compare applesoft files is to load each file, then display the end of the program in memory with this statement.

 

PRINT PEEK(175)+256*PEEK(176)

 

It is also quite easy to write your own CRC on the Apple.

Here is a 24-bit one that you can add to your utilities.

 

0300:D8 A5 67 85 06 A5 68 85 07 A0 00 84 08 84 09 18
0310:B1 06 E6 06 71 06 90 06 E6 08 D0 02 E6 09 E6 06
0320:D0 02 E6 07 A6 07 E4 B0 90 EA A6 06 E4 AF 90 E4
0330:AA A5 09 20 DA FD A5 08 4C 41 F9 00

BSAVE CRC.24BIT,A$300,L$3B

 

now just load your applesoft program then type CALL 768

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