Using c1541 from Vice Commodore 64 Emulator to transfer PRG files on to disk images

The Vice the Versatile Commodore Emulator contains a tool which is useful for transfering program files that were cross assembled on windows or other systems to a .d64 disk image file.
While VICE is able to load PRG files directly, with File > Autostart disk/tape image…, some emulators may only allow the use of disk images. You may also wish to prepare a PRG file to run on actual C64 harware.
To add a file called prog1.prg to a new disk use the following command from the command line, where the Vice c1541.exe executable is in your PATH.

c1541 -format disk1,id d64 disk1.d64 -attach disk1.d64 -write prog1.prg prog1

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s