Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Compare 2 .prg to find bug
2021-02-13 16:35
xIII

Registered: Nov 2008
Posts: 210
Compare 2 .prg to find bug

I want to compare two uncompressed c64 .prg files (my prg vs the original prg) to find a difference.

Maybe someone has already written such a program and is willing to share ?
2021-02-13 16:37
tlr

Registered: Sep 2003
Posts: 1714
For a simple byte compare, cdif can do it. Here: cbmtools 0.8
2021-02-13 16:54
xIII

Registered: Nov 2008
Posts: 210
Ok, thanks.
I tried cdif -otest.txt my.prg s.prg
and it started comparing but it didn't wrote an output file.
2021-02-13 17:12
Compyx

Registered: Jan 2005
Posts: 631
Just hexdump both .prg's and then diff the hexdumps.
2021-02-13 17:26
xIII

Registered: Nov 2008
Posts: 210
@Compyx: you make it sound so easy...

If i do chd my.prg, the dos box shows the dump but no file is written.

How can I see the result of the dump or the compare ?
2021-02-13 19:43
xIII

Registered: Nov 2008
Posts: 210
cdif my.prg s.prg > output.txt did the job.

thx for the support.
2021-02-13 22:52
chatGPZ

Registered: Dec 2001
Posts: 11108
If you are on windows - Totalcommander has a visual bindiff thingy :)
2021-02-13 22:56
Rastah Bar

Registered: Oct 2012
Posts: 336
I've used kdiff in the past:
http://kdiff3.sourceforge.net/
2021-02-16 15:44
Knight Rider

Registered: Mar 2005
Posts: 114
I use these 2

https://www.fairdell.com/hexcmp/
https://mh-nexus.de/en/hxd/
2021-02-16 16:35
map

Registered: Feb 2002
Posts: 27
vbindiff is another possibility:

https://www.cjmweb.net/vbindiff/
2021-02-16 16:36
Count Zero

Registered: Jan 2003
Posts: 1821
For the linux console I found "vbindiff" among the best.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Advanced
Users Online
LKP/CFN
Apollyon/ALD
Impetigo/Crescent
Mike
TheRyk/MYD!
The MeatBall
Alta
rexbeng
ibux/Artline Designs..
Guests online: 149
Top Demos
1 Next Level  (9.8)
2 Mojo  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Comaland 100%  (9.6)
6 No Bounds  (9.6)
7 Uncensored  (9.6)
8 The Ghost  (9.6)
9 Wonderland XIV  (9.6)
10 Bromance  (9.6)
Top onefile Demos
1 It's More Fun to Com..  (9.8)
2 Party Elk 2  (9.7)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.5)
5 Rainbow Connection  (9.5)
6 TRSAC, Gabber & Pebe..  (9.5)
7 Onscreen 5k  (9.5)
8 Wafer Demo  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Oxyron  (9.3)
2 Nostalgia  (9.3)
3 Booze Design  (9.3)
4 Censor Design  (9.3)
5 Crest  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 S!R  (9.9)
3 Mr Zero Page  (9.8)
4 Antitrack  (9.8)
5 OTD  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.048 sec.