| |
zzarko
Registered: Feb 2003 Posts: 82 |
Adding a new cartridge to VICE's Plus/4 emulation
As my friend and I are working on a banking eprom cartridge for Plus/4 line of computers, I'm interested to add a new cartridge to Plus/4 emulation in VICE, for testing purposes.
I have looked at the source code of existing cartridges, but I'm unsure where I need to make changes to make it work. It looks to me that I would need to change around 10-15 files for that, but I'm still not sure what goes where and why.
I wanted to ask is there maybe some documentation about what needs to be changed/added and where for a new cartridge to be emulated? |
|
| |
hedning
Registered: Mar 2009 Posts: 4813 |
Maybe this is a question that should be directed to The Vice team and/or a Plus/4 forum instead of a forum for C64 coding on CSDb? |
| |
zzarko
Registered: Feb 2003 Posts: 82 |
I saw a lot of emulator topics here, so I asked, but you are right, I'll try to contact Vice team. |
| |
chatGPZ
Registered: Dec 2001 Posts: 11523 |
For plus4 the process isnt straight forward unfortunately, since xplus4 doesnt really have the cart system implementation yet that c64 and vic20 has. To do it properly, the cart system structure/API from c64/vic20 would have to be implemented in plus4cart.c, the generic stuff splitted from that file, and perhaps a few more things. I might actually look at doing this soonish (as i am working on getting generic .crt support into vic20 and plus4 emulators).
However, for testing purposes look at plus4cart.c and debugcart.c (the later shows how to hook up some I/O register). For a quick test you'll probably have to sacrifice the generic implementation and replace it with yours. To make it easier to add what you did to mainline vice it would help if you put all the stuff that is specific to your cartridge into a seperate file - however, if you have a specification and some kind of image we can use for testing, that would also do the trick :) |
| |
zzarko
Registered: Feb 2003 Posts: 82 |
Groepaz, I have sent you the link to one tested cartridge image, if you have the time, take a look.
And thank you for suggestions on where to look in the VICE code, I'll try again. |