Closed sy2002 closed 9 months ago
I like this idea.
I've made a commit in the C64 repo (because it's easier to test there) : https://github.com/MJoergen/C64MEGA65/commit/92921e6bb36391f4308e801ac6bca39158988a53
I've refactored the CRT loading, but refactoring the PRG loading is still TBD.
@sy2002 : Please review.
I'll do the PRG loading too.
prg_loader refactored in C64 branch "mfj_refactor_prg". Not yet tested.
@MJoergen I tested the refactored PRG loader with multiple games from the "one load collection": Works like a charme. Do be on the safe side I also tested multiple .crt
cartridges: Work like a charme, too. I am closing this issue.
We agreed upon a protocol between the firmware and "CRT or ROM loading hardware". Examples which are using this protocol currently are in the C64 core:
.crt
loading.prg
loaderThe protocol consists of a few state machines and a few constants.
Right now the state machines as well as the constants are always copy/pasted into the multiple "clients/servers" of this protocol.
1) The minimum we should do is to put the constants into an official M2M package and then the CPP would import the package instead of copy/pasting the constants all the time.
2) Optional for bonus points: Can we write some generic code that CPPs can use to implement this protocol (and if so, we would then refactor the above-mentioned "users").