Getting back to machine-language, we will take the program from a previous post , assemble it by hand, and create a PRG file that can be run on a C64 emulator. The program is a very simple one that changes the background and border color to black: LDA #00 STA $D020 STA $D021 RTS If we look up the opcodes by hand or use an assembler, we can see that the machine language code for this program is the following byte sequence: A9 00 8D 20 D0 8D 21 D0 60 One way to run this program, at least on a Commodore 64 emulator, is to create a PRG file with it. Another way would be to create a disk image (D64). But the PRG format is much simpler, so we go with it, for now. A PRG file consists of a 2-byte header followed by the binary contents of the program to load into memory. The header specifies the memory address for the binary code to be loaded in the C64 memory space. So we could start with the bytes 00 C0 (the 6502 is a little-endian CPU) and load the code to address $C000; then we sho...