23 April 2021, 15:04 | #41 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
Frank I found an executable that confuses IRA a lot.Zoned (Hero Quest 2 executable, unpacked with Propack)
|
23 April 2021, 17:30 | #42 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
Got it. Thanks.
Do I use RNC_ProPack from Aminet to unpack? |
23 April 2021, 19:21 | #43 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
you don't need to unpack it. I already unpacked it. The unpacked version has issues with ira
shitload of "reloc" messages, and data section never finishes/creates a huge chunk of dc.b |
23 April 2021, 22:23 | #44 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
Ok. Fixed. Try the latest beta source from here:
http://sun.hasenbraten.de/~frank/TEST/ira_210beta.lha Thanks for reporting! |
23 April 2021, 22:39 | #45 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
working just fine! great fix, thanks
|
02 October 2021, 18:40 | #46 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
@PHX
It seems that IRA is having troubles disassembling some opcodes, I might have made a mistake but I choose 68060 so it includes FPU and MMU. Here some examples of not properly decoded ones. thanks DC.W $f328 DC.W $0000 => fsave 0(a0) DC.W $f228 DC.W $f0ff DC.W $00e4 DC.W $f228 CMP.B D0,D6 DC.W $00d8 => fmovem.x fp0-fp7,$e4(a0) fmovem.l fpcr/fpsr/fpiar,$d8(a0) DC.W $4e7a DC.W $0803 => movec msp,d0 |
02 October 2021, 22:44 | #47 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
|
03 October 2021, 10:06 | #48 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
@phx I tried 040 but it is not working too but I’ll have to double check.
Is it in a nightly build? Any link? The problem is that I’m disassembling a debugger so it contains all opcodes and I’d like to know the corresponding mnemonics even if I might put only the opcodes afterward and let the mnemonics as comments. |
03 October 2021, 18:50 | #49 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
Quote:
Code:
frank@nerthus cat movec.s mc68040 movec msp,d0 rts frank@nerthus vasmm68k_mot -quiet -Fhunkexe -o movec movec.s frank@nerthus ira -m68040 movec IRA V2.10 (May 17 2019) (c)1993-1995 Tim Ruehsen (SiliconSurfer/PHANTASM) (c)2009-2015 Frank Wille (c)2014-2019 Nicolas Bastien SOURCE : "movec" TARGET : "movec.asm" MACHINE: MC68040 OFFSET : $00000000 codeAdrs: 0 codeAdrMax: 16 CodeArea[0]: 00000000 - 00000008 Pass 1: 100% Pass 2: writing mnemonics 100% frank@nerthus cat movec.asm ; IRA V2.10 (May 17 2019) (c)1993-1995 Tim Ruehsen ; (c)2009-2015 Frank Wille, (c)2014-2019 Nicolas Bastien MC68040 SECTION S_0,CODE SECSTRT_0: MOVEC MSP,D0 RTS NOP END Quote:
There are no nightly builds as Nicolas only has time to work on IRA every 6-12 months. I'm also busy with many other projects, so I only do important bug fixes. |
||
03 October 2021, 20:21 | #50 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
Thanks a mil.
|
06 October 2021, 15:29 | #51 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
@PHX it doesn't work on my disassembly.
Is there is a way to modify the source code so it disassemble every existing opcodes from 68000 to 68060 including 68881/82 and MMU? Thx |
06 October 2021, 17:25 | #52 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
I understand your problem now. With that debugger you have a program which supports multiple CPUs and therefore also has parts with opcodes for them.
Difficult, because IRA currently has no means to assign a cpu-setting to specific program regions. It's always for the whole program. I agree that would be a useful addition, though. A hack to the IRA source you can try: Code:
--- init.c 26 Apr 2017 20:03:22 -0000 1.9 +++ init.c 6 Oct 2021 15:11:40 -0000 @@ -309,6 +309,8 @@ else if (!strcmp(&odata[2], "060")) ira->params.cpuType |= M68060; + else if (!strcmp(&odata[2], "0x0")) + ira->params.cpuType |= M680x0; else ExitPrg("Unknown processor Motorola %c%s", option, odata); else And turn on -a, so you know if a PFLUSHA mnemonic was meant for 68030 or 68060. |
06 October 2021, 17:27 | #53 |
Registered User
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,769
|
|
06 October 2021, 20:02 | #54 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
@PHX I’m gonna test that thanks!
@Bruce Abbott it is Monam. |
07 October 2021, 23:29 | #55 |
Registered User
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,769
|
For comparison, here is a disassembly of Monam 3.08 using my own disassembler.
This reassembles 100% with ProAsm, but there are some tables in it that are not decoded, so expect it to break if you make changes that change the offsets. |
08 October 2021, 10:44 | #56 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
@Bruce
Thanks, I’ll have a look. I remember about your disassembler not yet public right? update : nice disassembly is it a first pass or did you work on it to improve the output? Last edited by kamelito; 08 October 2021 at 18:16. |
10 October 2021, 22:10 | #57 | ||
Registered User
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,769
|
Quote:
Quote:
And now I have decoded the case tables (updated disassembly attached). For this I had to identify the code that used them to verify the base addresses (if the code is nearby this is usually done automatically, but Monam calls a subroutine which my disassembler was not smart enough to identify). One reason my disassembler isn't finished yet is that I am constantly finding things which could be improved. In this case I see Monam can disassemble two instructions that I didn't know about (plpar and plpaw). Looks like they are 060 only, which my disassembler doesn't currently support. |
||
11 October 2021, 09:17 | #58 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
@Bruce,
Great, can’t wait to test it. |
30 May 2022, 22:44 | #59 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
last version of IRA can't disassemble for instance kick 1.1 (A1000). It "forgets" all the labels & entrypoints. IRA v2.00 does the job perfectly.
|
01 June 2022, 17:30 | #60 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
Last official release (V2.09) on Aminet? Do you have the ROM file and a config file for reproduction? Also the command line options used.
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Windows 8 | Mequa | request.UAE Wishlist | 11 | 05 October 2010 21:09 |
Looking for IRA v1.07 or newer :-) | voxel | request.Apps | 7 | 30 July 2008 01:39 |
Modernizing Windows 3.11 | §ane | Retrogaming General Discussion | 23 | 27 April 2003 18:11 |
|
|