Bug 194

Summary: C64 .prg output support
Product: RMAC Reporter: ggn <ggnkua>
Component: CoreAssignee: Shamus Hammons <jlhamm>
Status: RESOLVED FIXED    
Severity: enhancement CC: jlhamm
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: The patches!
The test case!

Description ggn 2022-03-16 10:52:55 CDT
I mean, it's not rocket science, we can add that easily.


"The PRG format is ludicrously simple. It has two bytes of header data: This is a little-endian number indicating the starting address. The rest of the file is a single continuous chunk of data loaded into memory, starting at that address."

Pretty much what -fr does on 68k.
Comment 1 ggn 2022-12-20 15:51:05 CST
Created attachment 205 [details]
The patches!

Well here we go, wasn't too bad. It actually took more time to find an example program than to add support to the program!

(and I had to pick one that used all sorts of nasty tricks and there wasn't available source code per se - https://www.linusakesson.net/scene/a-mind-is-born/index.php. But eh, it's done)

I'll also attach the test program I used. Which raises the need (probably) for supporting undocumented 6502 opcodes. Joy unsurpassed...
Comment 2 ggn 2022-12-20 15:51:49 CST
Created attachment 206 [details]
The test case!
Comment 3 Shamus Hammons 2022-12-21 16:42:26 CST
Thanks for the patch!  :-)