![]() |
![]() |
#1 |
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
Tool to convert data file to executable
Can anyone recommend a tool that can take a data file and turn it into an Amiga executable? It would load the data into an absolute address and JMP to another address.
The kicker is I don't want the data compressed/crunched. Crunchers can compress the data and do all of the above, but I can't find a cruncher that omits the crunchy crunch part. I'm sure I can assemble something that'll do this but I'd prefer something premade where I can pop in a file and get an executable in a few seconds. I know I've used something that did this years ago but I can't for the life of me remember what it was. It was probably something really common but my brain is being stupid (as usual). |
![]() |
![]() |
#2 |
Registered User
Join Date: Aug 2014
Location: Brindisi (Italy)
Age: 70
Posts: 8,262
|
There is an application that makes an image executable, for text files you just need to insert the Flag "S"
|
![]() |
![]() |
#3 |
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
Thanks AMIGASYSTEM but by data file, I meant a raw memory dump, and then being able to jump to a specific part of code within that dump.
|
![]() |
![]() |
#4 |
This cat is no more
Join Date: Dec 2004
Location: FRANCE
Age: 52
Posts: 8,368
|
if nothing exists, I could write one in no time in SAS/C.
|
![]() |
![]() |
#5 |
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
I'm sure it exists because I recall using one back in the day, but I can't figure out what it was called.
It's a simple loader to write so if you're down for it jotd, no objections from me. And if you decide not to, no sweat! ![]() |
![]() |
![]() |
#6 |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,016
|
It would be a very simple piece of asm code to achieve what you want, you would just include the file at assembly time and done.
|
![]() |
![]() |
#7 | |
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
Quote:
Don't underestimate my laziness! ![]() |
|
![]() |
![]() |
#8 | |
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,539
|
Quote:
![]() Although I still don't see the advantage of a "generic" tool. You can even make it generic with an assembler. For example by defining a symbol on the command line with "-Dloadaddr=$1234". |
|
![]() |
![]() |
#9 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,947
|
This simple tool convert a binary data file to Amiga exe
http://grandis.nu/eabsearch/search.p...xclude=&limit= |
![]() |
![]() |
#10 | ||
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
Quote:
bin2exe FILE=rawdata LOAD=1000 JMP=30000 As I said, I know something like this already exists but I guess it was something obscure. I think I might write a generic converter myself when I find the time. As you said, it's super simple. I'm just being lazy. Quote:
|
||
![]() |
![]() |
#11 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,947
|
I am also interested in this kind of tool, if it takes a load and jump address ....... thanks !
![]() |
![]() |
![]() |
#12 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,947
|
But i have a question, since i am not an expert
![]() The load and the jump address can be freely chosen or must be determined ? ![]() |
![]() |
![]() |
#13 |
Registered User
Join Date: Jan 2011
Location: -
Posts: 728
|
Generally you have to determine these addresses. A lot of games loaded their data to specific memory addresses and then jumped to the game at another address. For example, it might have loaded the game data into $100 and later jumped to $4000 to start the game. If you don't have these details, the game almost certainly won't work.
A well written title will load the title to any memory address and jump to an address relative to that. For example, it might load into an address which is then stored into register A1. Later a jump to the address in A1 is done instead of somewhere specific. I hope that's not too confusing. |
![]() |
![]() |
#14 |
Registered User
Join Date: Oct 2012
Location: Italy
Age: 49
Posts: 2,947
|
It's not confusing, thanks for the infos
![]() |
![]() |
![]() |
#15 | ||
Natteravn
Join Date: Nov 2009
Location: Herford / Germany
Posts: 2,539
|
Quote:
Quote:
![]() |
||
![]() |
![]() |
#16 | |
Registered User
Join Date: Jan 2019
Location: Germany
Posts: 3,307
|
Quote:
http://aminet.net/dev/asm/2b_Bin2Asm.lha or http://aminet.net/dev/c/2b_Bin2C.lha To name two I found immediately on aminet. This way, the data file can be part of your code. Once assembled or compiled, it becomes part of the executable, i.e. your project. *puke*. DO not do that. Absoute addresses are in absolute use, and an absolute no-go in a multi-tasking system. To get an address data can go into, use AllocMem(), or the system loader aka "LoadSeg()". |
|
![]() |
![]() |
#17 |
Zone Friend
Join Date: May 2006
Location: France
Posts: 1,835
|
A packer like bytekiller do that.
|
![]() |
![]() |
#18 |
Junior Member
Join Date: Aug 2001
Location: France
Posts: 1,385
|
|
![]() |
![]() |
#19 | |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,016
|
Quote:
|
|
![]() |
![]() |
#20 | |
Going nowhere
Join Date: Oct 2001
Location: United Kingdom
Age: 50
Posts: 9,016
|
Quote:
|
|
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to read file from executable directory? | Sim085 | Coders. C/C++ | 21 | 08 June 2020 18:27 |
windows tool to convert ipf to wwp / normal adf file | jotd | Coders. General | 12 | 08 May 2014 09:02 |
Tool to convert NewIcon to normal icons | Leandro Jardim | request.Apps | 9 | 23 November 2013 15:18 |
File not executable | amigapd | support.Apps | 3 | 22 February 2011 17:59 |
File not executable | ancalimon | support.WinUAE | 8 | 15 February 2008 17:18 |
|
|