English Amiga Board


Go Back   English Amiga Board > Coders > Coders. Asm / Hardware

 
 
Thread Tools
Old 21 January 2023, 22:59   #1
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,820
correct option to re assemble code resourced by IRA

Are these the correct options to re assemble a disassembly done via IRA under Windows?

vasm.exe -devpac -m68000 -no-opt -Fhunkexe -kick1hunks file.asm
kamelito is offline  
Old 21 January 2023, 23:13   #2
jotd
This cat is no more
 
jotd's Avatar
 
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,335
if you used 68000 to disassemble you don't need to use -m68000. I don't think it's useful in any case, as IRA uses the MC68020 directive if you disassemble with 68020.

I'm using this:

Quote:
vasmm68k_mot -no-opt -nosym -maxerrors=0 -Fhunkexe -kick1hunks
no-opt is of course required, but nosym is also required, else you get debug symbols and the code is much bigger. -devpac is useless as well.
jotd is offline  
Old 21 January 2023, 23:38   #3
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,522
Correct. IRA always writes the matching CPU directives for the given -M68xxx options into the output, which overwrites vasm command line options.

-devpac may be used instead of -no-opt, as Devpac-compatibility also disables all optimizations.

There may be special cases where you need other options. For example -keepempty, when the original has empty sections which need to be preserved.
phx is offline  
Old 22 January 2023, 22:16   #4
kamelito
Zone Friend
 
kamelito's Avatar
 
Join Date: May 2006
Location: France
Posts: 1,820
Thanks both for the answers.
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
resourced ReSource Wepl Coders. Asm / Hardware 59 15 October 2023 23:05
Resource : How do you achieve exact same binary on a resourced file kamelito support.Apps 5 30 April 2021 17:17
is this correct queston about small blitz basic code? JPQ Coders. Blitz Basic 0 08 October 2019 09:40
68020 to 68000 code convertion using Ira and PhxAss gulliver Coders. Asm / Hardware 18 12 April 2014 01:09
assemble error BippyM Coders. General 6 28 February 2007 21:05

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 05:28.

Top

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