English Amiga Board


Go Back   English Amiga Board > Coders > Coders. General

 
 
Thread Tools
Old 10 January 2022, 13:24   #41
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
Awesome, 2022 is already better than 2021
kamelito is offline  
Old 16 January 2022, 14:38   #42
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
When you disassemble a program, 1st goal is to match the original binary, but many times it is not the case with Resource, how do you fix this.?
Once you have a modified binary what program do you use to create a patch for other to apply ? spatch? wdelta? other ?
kamelito is offline  
Old 16 January 2022, 14:46   #43
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,160
IRA is better at reassembling identically a program. But you have to turn all optimization options off first.

That said, when I want to create a patch file, I disassemble only to figure out where to change things, and I patch the binary without reassembling it. Reassembling is better to add features, change a lot of stuff.
jotd is offline  
Old 16 January 2022, 19:13   #44
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
Quote:
Originally Posted by kamelito View Post
When you disassemble a program, 1st goal is to match the original binary, but many times it is not the case with Resource, how do you fix this.?

It is perfectly possible to create 1:1 identical binary with ReSource, if that's not the case, you're doing it wrong. How do you use ReSource for disassembling? An example would be fine as otherwise it's hard to give you any tips on what to do differently.
StingRay is offline  
Old 16 January 2022, 20:35   #45
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
@StringRay
I load the exe, start disassemble, replace all +start occurrence by adding forward label, change the datatype when wrong DT (uncertain DT) use next error and fix them if required. Disassemble when the data is switch to code, +start replacement again.
kamelito is offline  
Old 16 January 2022, 20:44   #46
StingRay
move.l #$c0ff33,throat
 
StingRay's Avatar
 
Join Date: Dec 2005
Location: Berlin/Joymoney
Posts: 6,863
That sounds OK to me. You also need to make sure to have "New Syntax" enabled as otherwise ReSource omits the ".w" extension when using absolute short addresses (example: move.l #VBI,$6c.w would be disassembled as move.l #VBI,$6c if "New Syntax" is not enabled). This is a bug in ReSource and will lead to different binaries of course.
StingRay is offline  
Old 16 January 2022, 20:48   #47
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,801
OK thanks do you proceed any diffently?
kamelito 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
Disassembler copse Coders. General 86 01 January 2023 20:34
Peasauce disassembler copse Coders. General 1 31 January 2021 20:54
IDA Disassembler BippyM Coders. General 36 03 October 2018 10:51
68K assembler/disassembler syntax nocash Coders. Asm / Hardware 13 23 April 2016 00:35
A good 68K disassembler TikTok request.Apps 11 23 January 2002 03:49

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 13:58.

Top

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