> For the complete documentation index, see [llms.txt](https://manual.asm80.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://manual.asm80.com/misc-stuff/c64.md).

# How to generate a C64 .prg

You can generate .PRG files for C64 emulators directly, just use these directives:

```
.PRAGMA PRG – says “make .PRG instead of .HEX”  
.ORG $0810 – or higher  
.ENT $ – for “enter here”
```

Here is a short video tutorial (use fullscreen and HD for best quality).

[![Here is a short video tutorial (use fullscreen and HD for best quality).](https://img.youtube.com/vi/LwnarnR5Z-4/0.jpg)](https://www.youtube.com/watch?v=LwnarnR5Z-4)
