27 December 2020, 23:40 | #21 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
@phx yeah, I could just salvage a newer compiled version (1997) with FPU/68020. FPU makes the difference, not CPU. Giving that up.
@BruceAbbot I have proof that this tool is utter crap. Besides corrupting relocations, it also merges chipmem & pubmem hunks into pubmem hunks => copperlists in data chip hunks are relocated in fastmem! I changed the allocation of the data & bss hunks for that newer exe and it works fine. A proper hunk merger doesn't merge chip & public memory hunks. That tool is the main reason why most TFX executables are unusable. If you want to merge hunks, use compressors like TurboImploder and most of all TEST THE EXECUTABLE before delivery... Last edited by jotd; 28 December 2020 at 00:12. |
28 December 2020, 05:13 | #22 | |
Registered User
Join Date: Mar 2018
Location: Hastings, New Zealand
Posts: 2,771
|
Apparently not.
Instructions on TFX.HDF say:- Quote:
The original 020+FPU version seems to work fine on my A1200 with 50MHz 030+32MB FastRAM, so that would be the one to work on. |
|
28 December 2020, 10:21 | #23 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
The patched 68020 FPU version (tested and works). It's from 1997 so maybe the most advanced/bugfixed of the lot. Good enough. Using FPU and all means it's reasonably fast (people always fantasize on 68040/68060 instructions but they don't bring a lot/are generally not exploited by compilers because too exotic, maybe except for MOVE16... I admit I'm not a specialist)
My understanding is that this game is a mix of assembly and C. Not sure that there are a lot of custom FPU routines. Just the ones from the FPU C lib I reckon. yeah, probably the same patch I applied: load data & bss symbols in chipmem: works. The fact that the ones that don't work fail is because of the corrupt hunk relocs (see a few posts above: ira disassembly looks fine on a BRA instructions, but when run, memory indicates that the code has been tampered with) And yes now that you're mentionning it, I stumbled on a version where even disassembly was complete bogus. must have been the .030 one. I have a TFX.040 working version (with symbols!) from DamienD collection. Someone must have gotten that directly from the devs before they used hunkwizard |
13 March 2021, 16:46 | #24 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
oh found a bug related to ROXL
IRA disassembly (2.09) (part of a decrunch routine for a game) Code:
ROXR.W #1,D4 ;1f778: e254 DC.W $e5e8 ;1f77a <-- bloody garbage :) DC.W $0028 ;1f77c ROXR.W #1,D4 ;1f77e: e254 DC.W $e5e8 ;1f780 <-- bloody garbage :) ORI.W #$e254,(A0) ;1f782: 0050e254 DC.W $e5e8 ;1f786 <-- bloody garbage + desync :) ORI.W #$e254,EXT_0224.W ;1f788: 0078e254e5e8 ORI.L #$51ca0016,-(A0) ;1f78e: 00a051ca0016 LEA 2(A0),A0 ;1f794: 41e80002 MOVE.W #$000f,D2 ;1f798: 343c000f DBF D1,LAB_07D3 ;1f79c: 51c9000a Code:
0001F778 e254 ROXR.W #$01,D4 0001F77A e5e8 0028 ROXL.W (A0,$0028) == $000043a8 [0000] 0001F77E e254 ROXR.W #$01,D4 0001F780 e5e8 0050 ROXL.W (A0,$0050) == $000043d0 [0000] 0001F784 e254 ROXR.W #$01,D4 0001F786 e5e8 0078 ROXL.W (A0,$0078) == $000043f8 [0000] 0001F78A e254 ROXR.W #$01,D4 0001F78C e5e8 00a0 ROXL.W (A0,$00a0) == $00004420 [0000] 0001F790 51ca 0016 DBF .W D2,#$0016 == $0001f7a8 (F) 0001F794 41e8 0002 LEA.L (A0,$0002) == $00004382,A0 0001F798 343c 000f MOVE.W #$000f,D2 0001F79C 51c9 000a DBF .W D1,#$000a == $0001f7a8 (F) |
14 March 2021, 15:54 | #25 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
Sorry, just noticed that today. Yes, that's a bug. Fixed in the V2.10beta source, which you can download here: http://sun.hasenbraten.de/~frank/TEST/ira_210beta.lha
Thanks for reporting! |
14 March 2021, 21:20 | #26 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
Indeed. Rebuilt it with gcc and tried a disassembly: ROXL bug is now history
thanks |
21 April 2021, 17:44 | #27 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
Is IRA supporting FPU?
|
21 April 2021, 18:17 | #28 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
no it doesn't. One version supported it but was lost. Sad ain't it?
|
21 April 2021, 18:26 | #29 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
It's all prepared to reimplement them. Nicolas wanted to work on it - since a few years. I have not much time either (too many other projects).
I do smaller changes and fixes, though. |
21 April 2021, 18:41 | #30 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
I may be doing something wrong after the fpu I can’t disassemble the next instruction properly, I’ll have to double check before posting.
|
21 April 2021, 19:26 | #31 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
fpu isn't disassembled then desyncs the assembly stream. I use winuae to complete the assembly for FPU parts. Tedious but possible
|
21 April 2021, 20:47 | #32 | |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
Quote:
@PHX IRA is not disassembling the following code stream. Isn't it suppose to be andi.b #$FB, CCR ? DC.W $023c DC.W $fffb Another one : DC.L $4e7a8801 isn't it supposed to be : movec vbr, a0 ? Last edited by kamelito; 21 April 2021 at 20:57. |
|
21 April 2021, 22:41 | #33 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
Quote:
-compat=bi Quote:
-m68010 |
||
21 April 2021, 22:50 | #34 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
Thanks it’ll try that. Is it possible to choose the data type binary?
|
22 April 2021, 11:17 | #35 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
You mean a binary file, generated for a fixed absolute address, without any hunk-format header? Yes. By giving the option
-binary. Also -offsetand -entrymight be useful. Note that reassembling raw binary files requires some more work, because there are no relocation tables which tell IRA about pointer locations. Usually you will have to find these locations yourself and add them with the PTRSdirective to the config file. |
22 April 2021, 15:19 | #36 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,388
|
you don't have to specify binary, it's automatic if IRA doesn't detect executable format.
Sometimes IRA wrongly detects Atari ST executable format, ignores "binary" switch, fails with error and ... deletes the file! |
22 April 2021, 18:07 | #37 |
Ex nihilo nihil
Join Date: Oct 2017
Location: CH
Posts: 5,070
|
|
22 April 2021, 19:07 | #38 | |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
Quote:
|
|
22 April 2021, 21:22 | #39 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,553
|
Quote:
In fact I noticed some Amiga games in the past which have an Atari header starting with $601a. Probably Atari ports, which have been assembled on an Atari for the Amiga? Quote:
Are you doing multi-pass reassembling using a config file at all? |
||
22 April 2021, 21:31 | #40 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,866
|
@PHX
In the sprite example, I could change the shape in the source if I wanted, ex a mouse pointer. I suppose that it could be also useful in deciphering opcode but I'm no expert. Yep I use multipass like in the 5th Element |
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 |
|
|