Useful tools¶
Extract .prg from D64 image¶
If the download is a .zip (or other compression) file, start by unzipping it to a directory.
If the unzipped contents is a .prg file, then it can be loaded directly into the emulator. No more extra steps needed.
If the unzipped contents is a .D64 file (which is a C64 disk image file), a .prg file needs to be extracted from the .D64 file. For this purpose the c1541 command line utility provided by VICE emulator can be used.
- Install VICE (if not already installed).
- List contents of
.D64image (example):
- Extract
.prgfile from.D64image (example). The last argument is what you want to name the extracted.prgfile:
- In this example, The Last Ninja was extracted from the
.D64imagelncro.d64to the filelast ninja-zcs.prg.
Load .prg file¶
.prg type Basic¶
- File must be loaded as a Basic program, from the menu
Load Basic PRG file, or via the monitor. - Start by typing
RUN(and press Enter). - The Basic program is most likely a short stub program that starts a machine language program by invoking
SYS.
.prg type Binary¶
- File must be loaded as a Binary program (from the menu or monitor).
- It's loaded into a memory address that is specified in the first two bytes of the
.prgfile (a C64 standard). - Menu:
Load & start binary PRG file- It's loaded and started automatically.
- Monitor:
- See the Monitor library docs. Relevant commands are
ll [file]andg [address].
- See the Monitor library docs. Relevant commands are