English Amiga Board


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

View Poll Results: Do you want me to release the IRA export code?
No, keep your dirty tools to yourself 1 11.11%
Er... wtf is Ghidra? 1 11.11%
What is IRA? d00d haven't you heard of ReSource, LOL? 1 11.11%
Yes 6 66.67%
Multiple Choice Poll. Voters: 9. You may not vote on this poll

 
 
Thread Tools
Old 01 August 2024, 10:55   #1
!ZAJC!
Registered User
 
Join Date: Jan 2024
Location: Zagreb / Croatia
Posts: 18
Question Ghidra to IRA export: release it or not?

Are there any Ghidra users around interested in seeing an IRA export tool? Poll above.

TLDR:
  • Ghidra is an open-source reverse engineering framework by NSA (No Such Agency).
  • ghidra-amiga-ldr is a plugin by Vladimir Kononovich that lets you load an Amiga Hunk Exe, further extended into ghidra-amiga by Bartmann/Abyss
    See a video of it in action here [ Show youtube player ] (turn on auto-translated subtitles in Youtube unless you speak Russian)
  • IRA is a disassembler by phx (Frank Wille) that can take an Amiga executable and create disassembly that can be submitted to vasm and other assemblers and create an identical executable.

I built a Ghidra tool that can export your annotated Ghidra-analyzed Amiga Hunk EXE into an IRA config.

You feed that .cnf file to IRA and get output like this:

Code:
	LEA	s_dos_library_002359c9,A1 ;00030: 43f9000169c9
	JSR	LVO_exec_library_OldOpenLibrary(A6) ;00036: 4eaefe68
	MOVEA.L	(A7)+,A0		;0003a: 205f
	MOVE.L	D0,-(A7)		;0003c: 2f00
	TST.L	172(A5)			;0003e: 4aad00ac
	BEQ.S	is_workbench_process	;00042: 6738
; * Running in CLI
	CLR.W	LineWriteOffset(A4)	;00044: 426c3402
	CLR.W	offs_StartWord0(A4)	;00048: 426c3400
	JSR	parse_stuff		;0004c: 4eb9000002b4
	MOVEA.L	(A7)+,A6		;00052: 2c5f
	MOVEQ	#0,D1			;00054: 7200
	JSR	LVO_dos_library_CurrentDir(A6) ;00056: 4eaeff82
Notice the auto-annotated strings, user-defined comments, labels, auto-generated LVO equates, etc..

Here's a screenshot:


Any interest?
Attached Thumbnails
Click image for larger version

Name:	ira_export.png
Views:	122
Size:	202.6 KB
ID:	82821  

Last edited by !ZAJC!; 01 August 2024 at 11:09. Reason: typos
!ZAJC! is offline  
Old 01 August 2024, 19:12   #2
cloverskull
Registered User
 
Join Date: Sep 2018
Location: California
Posts: 368
Very cool. This could definitely come in handy. Nicely done.
cloverskull is offline  
Old 01 August 2024, 20:33   #3
phx
Natteravn
 
phx's Avatar
 
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,569
Why ask? Post a download link in the Releases category and see if anybody finds it useful.
phx is online now  
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Similar Threads
Thread Thread Starter Forum Replies Last Post
Ghidra for amiga disassembling copse Coders. General 30 01 August 2024 11:15
Ira disassembly ghosty777 Coders. General 15 16 March 2024 23:45
ira for Windows jotd Coders. General 63 12 December 2023 10:53
How to use Ghidra on packed games iliak Coders. Tutorials 1 07 April 2023 11:06
New Ghidra Amiga extension released Bartman News 0 08 September 2022 15:43

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 17:18.

Top

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