Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
You are not logged in 
CSDb User Forums

Forums > C64 Coding > Adding a new cartridge to VICE's Plus/4 emulation
2021-01-08 07:55

Registered: Feb 2003
Posts: 40
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?
2021-01-08 08:38

Registered: Mar 2009
Posts: 3067
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?
2021-01-08 09:45

Registered: Feb 2003
Posts: 40
I saw a lot of emulator topics here, so I asked, but you are right, I'll try to contact Vice team.
2021-01-08 14:08

Registered: Dec 2001
Posts: 9716
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 :)
2021-01-09 14:30

Registered: Feb 2003
Posts: 40
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.
RefreshSubscribe to this thread:

You need to be logged in to post in the forum.

Search the forum:
Search   for   in  
All times are CET.
Search CSDb
Users Online
TPM/Silicon Ltd
Guests online: 79
Top Demos
1 Christmas Megademo  (9.7)
2 Uncensored  (9.6)
3 Edge of Disgrace  (9.6)
4 Unboxed  (9.6)
5 Coma Light 13  (9.6)
6 Memento Mori  (9.6)
7 Lunatico  (9.6)
8 Comaland 100%  (9.6)
9 The Shores of Reflec..  (9.5)
10 Protogeo 100%  (9.5)
Top onefile Demos
1 Copper Booze  (9.8)
2 To Norah  (9.8)
3 Lovecats  (9.6)
4 Elite Code Mechanics  (9.6)
5 The Sprite Demo  (9.6)
6 Square Booze  (9.5)
7 Daah, Those Acid Pil..  (9.5)
8 Dawnfall V1.1  (9.5)
9 Quadrants  (9.5)
10 Hyperborea  (9.5)
Top Groups
1 Booze Design  (9.4)
2 Censor Design  (9.4)
3 Fossil  (9.4)
4 Oxyron  (9.3)
5 PriorArt  (9.3)
Top Cover Designers
1 Duce  (9.8)
2 Electric  (9.8)
3 Junkie  (9.7)
4 The Elegance  (9.4)
5 Mermaid  (9.3)

Home - Disclaimer
Copyright © No Name 2001-2021
Page generated in: 0.035 sec.