Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
  You are not logged in - nap
Bin2prg   [2006]

Release Date :
25 April 2006

Type :
Other Platform C64 Tool

User rating:awaiting 8 votes (8 left)

Credits :
Code .... WVL of Slash Design, Xenon

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
Advanced
Navigate
Prev - Random - Next
Detailed Info
· Summaries
· User Comments (11)
· Production Notes
Fun Stuff
· Goofs
· Hidden Parts
· Trivia
Forum
· Discuss this release
Support CSDb
Help keep CSDb running:



Funding status:




About this site:
CSDb (Commodore 64 Scene Database) is a website which goal is to gather as much information and material about the scene around the commodore 64 computer - the worlds most popular home computer throughout time. Here you can find almost anything which was ever made for the commodore 64, and more is being added every day. As this website is scene related, you can mostly find demos, music and graphics made by the people who made the scene (the sceners), but you can also find a lot of the old classic games here. Try out the search box in the top right corner, or check out the CSDb main page for the latest additions.
Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.083 sec.