Bug 194 - C64 .prg output support
Summary: C64 .prg output support
Alias: None
Product: RMAC
Classification: Unclassified
Component: Core (show other bugs)
Version: unspecified
Hardware: All All
: Normal enhancement
Assignee: Shamus Hammons
Depends on:
Reported: 2022-03-16 10:52 CDT by ggn
Modified: 2022-12-21 16:42 CST (History)
1 user (show)

See Also:

The patches! (2.94 KB, patch)
2022-12-20 15:51 CST, ggn
The test case! (1.80 KB, application/x-zip-compressed)
2022-12-20 15:51 CST, ggn

Note You need to log in before you can comment on or make changes to this bug.
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!  :-)