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). |
There is an application that makes an image executable, for text files you just need to insert the Flag "S"
|
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.
|
if nothing exists, I could write one in no time in SAS/C.
|
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! :D |
Quote:
|
Quote:
Don't underestimate my laziness! :D |
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". |
This simple tool convert a binary data file to Amiga exe
http://grandis.nu/eabsearch/search.p...xclude=&limit= |
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:
|
I am also interested in this kind of tool, if it takes a load and jump address ....... thanks ! :)
|
But i have a question, since i am not an expert :rolleyes
The load and the jump address can be freely chosen or must be determined ? :blased |
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. |
It's not confusing, thanks for the infos :)
|
Quote:
Quote:
|
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. Quote:
|
A packer like bytekiller do that.
|
Quote:
|
Quote:
Quote:
Quote:
|
Quote:
|
All times are GMT +2. The time now is 04:10. |
Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.