# 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)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://manual.asm80.com/misc-stuff/c64.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
