![]() |
![]() |
#41 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
is IRA amiga only? is there a windows version?
|
![]() |
![]() |
#42 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
There is a Windows executable in the archive.
|
![]() |
![]() |
#43 |
Global Moderator
Join Date: Nov 2001
Location: Derby, UK
Age: 48
Posts: 9,355
|
|
![]() |
![]() |
#44 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,580
|
It's portable C99 using only standard clib functions, so it will run on any system with a working C compiler.
|
![]() |
![]() |
#45 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
@PHX
A nice option to add to IRA would be for example if a program is only for 68000 but there's code in there for other 68k it would be nice to be able to add a comment line in the config file to say this hex code at offset x to y are for the instructions z. |
![]() |
![]() |
#46 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
BASEREG value when code is modified
@PHX
If you add code to an IRA disassembly do you’ve to move the BASEREG by adding the value of the size of the added code /2? Something else ? To correct the value loaded to A4? |
![]() |
![]() |
#47 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,580
|
Quote:
With a valid BASEREG, BASEADR and BASEOFF in your config file (or -basereg option), IRA will generate labels for small data references. These labels will still be correct after you add code. Sorry missed that: Quote:
move.l (a0,d0.l*8),d0in 68000 mode, although it would be valid and execute (without scaling) on the 68000. I'm not too keen on digging into the disassembler part, though, because this is what Nicolas Bastien rewrote completely over the last years. Maybe we can ask him. |
||
![]() |
![]() |
#48 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,894
|
I guess then something is missing in my disassembly. I’ll have to check again. There’s part where adding code works, others parts not.
Thx for answering |
![]() |
![]() |
#49 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 277
|
Quote:
Code:
C:\Amiga>tools\ira\ira -a -compat=bi -binary -offset=$400 -preproc Loader IRA V2.09 (Sep 19 2017) (c)1993-1995 Tim Ruehsen (SiliconSurfer/PHANTASM) (c)2009-2015 Frank Wille (c)2014-2017 Nicolas Bastien Atari's executable files not yet supported. Thanks for any pointers. |
|
![]() |
![]() |
#50 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,311
|
Not sure where phx publishes new, official releases, but you can get the source for a newer version here: https://eab.abime.net/showpost.php?p...8&postcount=62
|
![]() |
![]() |
#51 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,454
|
this atari file detection is buggy. If there's a "bra" instruction at the start of the binary IRA may detect it as an Atari ST (and deletes the file as a bonus bug!!)
-binary switch is overridden by the Atari ST detection... which isn't supported... My workaround is to change the first byte of the binary file to 0. But changing to e.g. $67 so bra => beq could be even better (and restore bra manually) Even with the bugs, IRA remains an invaluable tool for me. |
![]() |
![]() |
#52 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 277
|
Thanks very much. I'll try the new source code and if that doesn't work I'll try a workaround. Perhaps adding a NOP at the start of the binary and offsetting by a couple of bytes would work.
|
![]() |
![]() |
#53 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,311
|
Let's fix the code if it's still an issue with the latest version (which may not be what I linked). Looks like Atari is detected if first two bytes are $60,$1a.
If you could upload the offending file to the zone I'll check if it works for me. |
![]() |
![]() |
#54 |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 277
|
Thanks. I haven't uploaded to the Zone before. The link at the top doesn't work but I am connected to the ftp and ftp2. Do I have to put the file somewhere specific so you can find it?
|
![]() |
![]() |
#55 | |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,311
|
Quote:
First join the user group: https://eab.abime.net/faq.php?faq=vb...ezone_faq_item Then you can click the zone link and upload (at the bottom) |
|
![]() |
![]() |
#56 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 277
|
Quote:
EDIT: May contain a TVD, but hope ira can make a start. Last edited by hop; 03 December 2023 at 18:46. Reason: Context |
|
![]() |
![]() |
#57 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,311
|
Yep that starts w/ $601a, but works fine w/ the version I have (which I think I compiled from the source I linked). Added windows (64-bit) exe to the zone just in case.
|
![]() |
![]() |
#58 | |
Registered User
Join Date: Apr 2019
Location: UK
Posts: 277
|
Quote:
Code:
C:\Amiga\>tools\ira\ira -a -compat=bi -binary -offset=$400 -preproc Stage2Loader IRA V2.10 (Jan 16 2022) (c)1993-1995 Tim Ruehsen (SiliconSurfer/PHANTASM) (c)2009-2015 Frank Wille (c)2014-2019 Nicolas Bastien SOURCE : "Stage2Loader" TARGET : "Stage2Loader.asm" BINARY : "Stage2Loader" MACHINE: MC68000 OFFSET : $00000400 Pass 0: scanning for data in code Areas: 3 codeAdrs: 0 codeAdrMax: 16 CodeArea[0]: 00000400 - 00000402 CodeArea[1]: 0000041c - 00000456 CodeArea[2]: 00000490 - 0000054c CodeArea[3]: 00001a00 - 00001a00 Pass 1: 100% Pass 2: correcting labels Pass 2: writing mnemonics 100% |
|
![]() |
![]() |
#59 |
Registered User
Join Date: Feb 2017
Location: Denmark
Posts: 1,311
|
Glad you got it working
![]() Maybe this will spur phx to make an "official" 2.10 release or educate us on where to get it ![]() |
![]() |
![]() |
#60 |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,580
|
Yes, indeed, I should do that! The last modification of the source was June 2022, so I should have done the realease back then...
![]() Will upload to Aminet tomorrow (if I don't forget it). Looking at the list of modifications I probably wanted to finish HUNK_RELRELOC32support. But this hunk is very rare. I wouldn't be surprised if vasm is the only assembler which can create it. Code:
Bug fixes: - Fixed parsing of HUNK_RELOC32SHORT/HUNK_DREL32. - Renamed itoa() to avoid conflicts with compilers providing that function. - -binary option always overrides the automatic format detection. - Fixed detection of memory rotate instructions. - Instructions with 32-bit absolute addressing, but with a relocation which extends into the following instruction, cannot be valid. - Fixed ROMTag detection with a NULL-pointer for the Init-code. New features: - Supports HUNK_RELRELOC32 and EXT_RELREF32 in executables and object files. But cannot create labels for such references at this time. |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
ira for Windows | jotd | Coders. General | 63 | 12 December 2023 10:53 |
New tutorial on sprites | Yragael | Coders. Tutorials | 8 | 04 September 2023 21:00 |
Debugging messages in serial (small tutorial, mainly for cross-dev) | alkis | Coders. Asm / Hardware | 7 | 22 February 2016 14:16 |
68020 to 68000 code convertion using Ira and PhxAss | gulliver | Coders. Asm / Hardware | 18 | 12 April 2014 01:09 |
Looking for IRA v1.07 or newer :-) | voxel | request.Apps | 7 | 30 July 2008 01:39 |
|
|