| |
User rating: | awaiting 8 votes (8 left) |
Credits :
Download :
Look for downloads on external sites:
Pokefinder.org
User Comment Submitted by WVL on 7 June 2006
updated it a bit so it does a better error check on your input and also accepts hexadecimal adresses now (start adress with $ or x). | User Comment Submitted by Krill on 25 April 2006
You can produce .prg with ca65 nicely as well :D | User Comment Submitted by Ninja on 25 April 2006
radiantx: I am with you! And for the makefiles: Use any assembler besides CA65 and you will get your PRG easily out of the box ;) | User Comment Submitted by Radiant on 25 April 2006
JackAsser: I do. Never need to convert binary files to PRG files in them, though... That's a one time task. :-) | User Comment Submitted by JackAsser on 25 April 2006
@radiantx: you've just admited that you don't use makefiles nor batch jobs. :D
Anyway, my solution to get rid of all load address hassle was to simply ALWAYS pu-crunch, which doesn't need load address since I always enforce it with -x 0xdead. | User Comment Submitted by Radiant on 25 April 2006
Am I the only one who can't be bothered automate bin->prg conversion? Hex editors do the job just fine. :-) | User Comment Submitted by MagerValp on 25 April 2006
I also used to use dd, echo, and cat, but after trying to figure out what an address was in octal for the 100th time, I coded my own bin2prg that works exactly like this one. It's like 10 lines of source, but in the end it saves some typing.
ObPerlSolution: perl -e 'print "\x01\x08"; while (<>) { print; }' < foo.bin > bar.prg
| User Comment Submitted by JackAsser on 25 April 2006
@tlr: Funny how yours and my command line is exactly the same. ;) | User Comment Submitted by Radiant on 25 April 2006
Heh. This is almost as good as the $d021 editor, but not quite. | User Comment Submitted by tlr on 24 April 2006
Simple but useful.
If you are on a unix-like system, you could also do this...
echo -e -n '\x00\x40' | cat - file.bin > file.prg
... to add a load address, and this...
dd if=file.prg of=file.bin bs=1 skip=2
... to remove it. :) | User Comment Submitted by WVL on 24 April 2006
couldnt find this on the net, so why not share it.. This is the reverse of prg2bin (check out the covert bitops toolset!).
usage : bin2prg [infile] [outfile] [startadress], it even does some sort of error checking, but don't depend on it ;) |
|
|
|
| Search CSDb |
| Navigate | |
|
| Detailed Info | |
|
| Fun Stuff | |
· Goofs · Hidden Parts · Trivia
|
|
| Forum | |
|
| Support CSDb | |
|
| |
|