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


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

Registered: Feb 2003
Posts: 81
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
hedning

Registered: Mar 2009
Posts: 4803
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
zzarko

Registered: Feb 2003
Posts: 81
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
chatGPZ

Registered: Dec 2001
Posts: 11512
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
zzarko

Registered: Feb 2003
Posts: 81
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
Advanced
Users Online
megasoftargentina
Matt
Guests online: 136
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Codeboys & Endians  (9.7)
4 Mojo  (9.6)
5 Coma Light 13  (9.6)
6 Edge of Disgrace  (9.6)
7 Signal Carnival  (9.6)
8 Wonderland XIV  (9.5)
9 Uncensored  (9.5)
10 Comaland 100%  (9.5)
Top onefile Demos
1 Nine  (9.7)
2 Layers  (9.6)
3 Cubic Dream  (9.6)
4 Party Elk 2  (9.6)
5 Copper Booze  (9.5)
6 Scan and Spin  (9.5)
7 Onscreen 5k  (9.5)
8 Grey  (9.5)
9 Dawnfall V1.1  (9.5)
10 Rainbow Connection  (9.5)
Top Groups
1 Artline Designs  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Performers  (9.3)
5 Censor Design  (9.3)
Top Musicians
1 Rob Hubbard  (9.7)
2 Jeroen Tel  (9.7)
3 Stinsen  (9.7)
4 LMan  (9.7)
5 Linus  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2025
Page generated in: 0.081 sec.