English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 29 April 2006, 18:47   #1
mr_a500
Amiga-based Cyborg
 
mr_a500's Avatar
 
Join Date: Dec 2004
Location: Canada
Posts: 808
Need a little disassembly/binary edit help

"The Matrix" screensaver looks for graphics.library 40+ when loading and fails when it is not found - even though the documentation says that it's possible to run it with version 39 if you've got a writechunkypixel patch (I do). So, I need a way to stop the executable from searching for version 40+. I contacted the author last year but got no response. So I want to edit the executable to look for v.39 instead.

I know how to binary edit obvious things in executables, but I don't know how to disassemble a running program to find the spot I need to edit. I was wondering if somebody could help and see if there's a simple way to edit the executable (to change 40 to 39 or even prevent the graphics.library check). If not, I was wondering if somebody could name a tool that allows you to see what part of the executable is being executed and at what point.

About the legality/ethics of doing this, there's a line in The Matrix documentation that says: "You might disassemble the program if you think you'll have fun doing this".
mr_a500 is offline  
Old 29 April 2006, 23:30   #2
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,187
If you have Resource, this should be a trivial change. 40 in hex is 28, so you would need to hunt in the executable for the word $0028 and change to $0027.

Libraries are generally opened right at the beginning of the program so there should be a $0028 within the first couple of hundred bytes. If you can't work it out just upload the binary and someone here will surely hack it for you.
Codetapper is offline  
Old 30 April 2006, 00:35   #3
mr_a500
Amiga-based Cyborg
 
mr_a500's Avatar
 
Join Date: Dec 2004
Location: Canada
Posts: 808
Quote:
If you have Resource, this should be a trivial change. 40 in hex is 28, so you would need to hunt in the executable for the word $0028 and change to $0027.
Resource? Searching for hex 28 is the first thing I tried. If you replace the first, the program won't load (no libraries checked or anything). If you replace the second, it checks for graphics 40 then crashes. If you replace the third, same thing.

So I guess I need somebody willing to hack. Anybody? Think of it as a hacking challenge. (..rather than free work )
mr_a500 is offline  
Old 30 April 2006, 10:16   #4
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,187
It might help if you upload the file to the Zone...
Codetapper is offline  
Old 30 April 2006, 16:35   #5
mr_a500
Amiga-based Cyborg
 
mr_a500's Avatar
 
Join Date: Dec 2004
Location: Canada
Posts: 808
Well, I didn't want to upload it to the Zone before someone actually offered to help. That would be silly. (..and look desperate)

But if you're going to help, I'll throw it in the Zone faster than you can say "mama mia!" (it's there now)

Thanks

Last edited by mr_a500; 30 April 2006 at 16:46.
mr_a500 is offline  
Old 30 April 2006, 21:33   #6
Codetapper
2 contact me: email only!
 
Codetapper's Avatar
 
Join Date: May 2001
Location: Auckland / New Zealand
Posts: 3,187
Nobody is going to offer the help unless the file is there to look at
Codetapper is offline  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Looking for 68000 binary optimization utility amigoun request.Apps 2 23 October 2011 00:36
Binary (Amigo Magazine) Heavy Stylus request.Old Rare Games 8 06 August 2011 23:29
How do you do a clean base register disassembly using Resource? Codetapper Coders. General 6 20 February 2011 12:53
Binary Dinosaurs... Paul_s Amiga websites reviews 4 05 November 2009 23:01
How to make sense of disassembly? Jonathan Drain Coders. General 1 27 October 2009 22:57

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 04:10.

Top

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Page generated in 0.07811 seconds with 13 queries