Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user Kody ! (Registered 2021-03-01) You are not logged in 
CSDb User Forums


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

Registered: Nov 2008
Posts: 196
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: 1433
For a simple byte compare, cdif can do it. Here: cbmtools 0.8
2021-02-13 16:54
xIII

Registered: Nov 2008
Posts: 196
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: 601
Just hexdump both .prg's and then diff the hexdumps.
2021-02-13 17:26
xIII

Registered: Nov 2008
Posts: 196
@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: 196
cdif my.prg s.prg > output.txt did the job.

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

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

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

Registered: Mar 2005
Posts: 68
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: 16
vbindiff is another possibility:

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

Registered: Jan 2003
Posts: 1250
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
Earthshaker/Silicon ..
Scrapper
Thunder.Bird/HF/MYD!..
da Blondie/Resource
csabanw
r242
SD/Focus
Dymo/G★P
grass/LETHARGY
Conrad/ΛRTΣTΛTE
MCM/ONSLAUGHT
Guests online: 95
Top Demos
1 Uncensored  (9.6)
2 Edge of Disgrace  (9.6)
3 Unboxed  (9.6)
4 Coma Light 13  (9.6)
5 Christmas Megademo  (9.6)
6 Thirty  (9.6)
7 Memento Mori  (9.6)
8 Lunatico  (9.6)
9 Comaland 100%  (9.6)
10 The Shores of Reflec..  (9.5)
Top onefile Demos
1 Copper Booze  (9.8)
2 To Norah  (9.8)
3 Transmission64 Invit..  (9.7)
4 Lovecats  (9.6)
5 Elite Code Mechanics  (9.6)
6 Catwalk  (9.6)
7 Square Booze  (9.5)
8 Daah, Those Acid Pil..  (9.5)
9 Dawnfall V1.1  (9.5)
10 Quadrants  (9.5)
Top Groups
1 Booze Design  (9.4)
2 Fossil  (9.4)
3 Censor Design  (9.3)
4 Oxyron  (9.3)
5 PriorArt  (9.3)
Top Organizers
1 Burglar  (9.9)
2 Sixx  (9.8)
3 Irata  (9.8)
4 Taper  (9.8)
5 hedning  (9.8)

Home - Disclaimer
Copyright © No Name 2001-2021
Page generated in: 0.043 sec.