Welcome to our latest new user
maak
! (Registered 2024-04-18)
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: 66
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: 4584
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: 66
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: 11100
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: 66
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.
Refresh
Subscribe to this thread:
You need to be logged in to post in the forum.
Search the forum:
Search
All forums
C64 Coding
C64 Composing
C64 Pixeling
C64 Productions
CSDb Bug Reports
CSDb Discussions
CSDb Entries
CSDb Feedback
CSDb Info
CSDb moderators
CSDb Questions
CSDb V2 development
Messages to moderators
Requests
for
in
Writer & text
Text
Writer
All times are CET.
Search CSDb
All
Releases
Groups
Sceners
Events
BBS
SIDs
-------
Forum
Comments
Advanced
Users Online
icon/The Silents, Sp..
cba
kbs/Pht/Lxt
Mr SQL
TheRyk/MYD!
Smasher/F4CG
Digger/Elysium
Frostbyte/Artline De..
Mihai
Guests online: 159
Top Demos
1
Next Level
(9.8)
2
Mojo
(9.7)
3
Coma Light 13
(9.7)
4
Edge of Disgrace
(9.6)
5
Comaland 100%
(9.6)
6
No Bounds
(9.6)
7
Uncensored
(9.6)
8
Wonderland XIV
(9.6)
9
The Ghost
(9.6)
10
Bromance
(9.6)
Top onefile Demos
1
It's More Fun to Com..
(9.9)
2
Party Elk 2
(9.7)
3
Cubic Dream
(9.6)
4
Copper Booze
(9.5)
5
Rainbow Connection
(9.5)
6
Wafer Demo
(9.5)
7
TRSAC, Gabber & Pebe..
(9.5)
8
Onscreen 5k
(9.5)
9
Dawnfall V1.1
(9.5)
10
Quadrants
(9.5)
Top Groups
1
Oxyron
(9.3)
2
Nostalgia
(9.3)
3
Booze Design
(9.3)
4
Censor Design
(9.3)
5
Crest
(9.3)
Top Logo Graphicians
1
Sander
(10)
2
Facet
(9.7)
3
Mermaid
(9.4)
4
Pal
(9.4)
5
Shine
(9.3)
Home
-
Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.188 sec.