Log inRegister an accountBrowse CSDbHelp & documentationFacts & StatisticsThe forumsAvailable RSS-feeds on CSDbSupport CSDb Commodore 64 Scene Database
 Welcome to our latest new user maak ! (Registered 2024-04-18) You are not logged in - nap
CSDb User Forums


Forums > C64 Coding > Detect C128 in C64-mode without exploiting 2mhz mode?
2020-04-03 08:04
JackAsser

Registered: Jun 2002
Posts: 1987
Detect C128 in C64-mode without exploiting 2mhz mode?

Reason: Easyflash emulation in 1541u2 doesn’t work in 2mhz mode.
 
... 40 posts hidden. Click here to view all posts....
 
2021-09-29 10:04
JackAsser

Registered: Jun 2002
Posts: 1987
Quote: Indeed. And for more fun, its not exactly random, but depends on what the VIC fetched in the previous cycle :)

True. I'll change that to vdcProbablyPresent and then read/write some into VDC RAM to be sure (with timeout on the polls).
2021-09-29 11:50
Oswald

Registered: Apr 2002
Posts: 5017
why not just test at $d030, you set some used bit, and then test it if it stays the same for the entire next frame, then clear the bit and same.
2021-09-29 12:28
Krill

Registered: Apr 2002
Posts: 2825
Quoting Oswald
why not just test at $d030
$D030 is implemented by a couple of accelerators as well, so its presence doesn't say anything about the machine being a C-128.

Besides, see OP: "Easyflash emulation in 1541u2 doesn’t work in 2mhz mode."
2021-09-29 13:37
JackAsser

Registered: Jun 2002
Posts: 1987
Quote: Quoting Oswald
why not just test at $d030
$D030 is implemented by a couple of accelerators as well, so its presence doesn't say anything about the machine being a C-128.

Besides, see OP: "Easyflash emulation in 1541u2 doesn’t work in 2mhz mode."


For this particular problem I just want to detect the VDC chip. It has nothing to do with CPU speed. It's for dual-screen support in Eye of the Beholder. The map rendering on the VDC is almost completed now.
2021-09-29 15:25
Krill

Registered: Apr 2002
Posts: 2825
Quoting JackAsser
For this particular problem I just want to detect the VDC chip. It has nothing to do with CPU speed.
A VDC is present if and only if the machine is a C-128, no? =) (Or do VDC-less C-128s exist? :-O)
2021-09-29 15:32
chatGPZ

Registered: Dec 2001
Posts: 11100
But what if i put a VDC in my C64?
2021-09-29 18:49
Oswald

Registered: Apr 2002
Posts: 5017
Quote: But what if i put a VDC in my C64?

that points to autodetect then let the user change, then save settings not.to bother.him again.
2021-09-29 19:38
JackAsser

Registered: Jun 2002
Posts: 1987
Quote: Quoting JackAsser
For this particular problem I just want to detect the VDC chip. It has nothing to do with CPU speed.
A VDC is present if and only if the machine is a C-128, no? =) (Or do VDC-less C-128s exist? :-O)


I mean, it's easier to detect the VDC than accidently detect a C128 and assume the VDC is there which will corrupt SID.
2021-09-29 19:55
tlr

Registered: Sep 2003
Posts: 1703
Quote: I mean, it's easier to detect the VDC than accidently detect a C128 and assume the VDC is there which will corrupt SID.

If the purpose is to use the VDC and your code doesn't care about other C128 features, then it makes total sense to detect just the VDC directly.
2021-09-29 20:18
JackAsser

Registered: Jun 2002
Posts: 1987
Quote: If the purpose is to use the VDC and your code doesn't care about other C128 features, then it makes total sense to detect just the VDC directly.

My thought as well. I will not auto-enable the 2Mhz-mode in the presence of a C128 since the EF3-emulation on U2+ doesn't support that. I however do want to automatically detect the VDC. Enable the second screen with a menu config is just poor UX. Also it's not like there will be random chips in the D600-range. It's either a SID-chip, broken SID-chip, a VDC, a broken VDC or nothing.
Previous - 1 | 2 | 3 | 4 | 5 - Next
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
grennouille
csabanw
Guests online: 75
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.8)
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 Swappers
1 Derbyshire Ram  (10)
2 Jerry  (9.8)
3 Violator  (9.8)
4 Acidchild  (9.7)
5 Starlight  (9.6)

Home - Disclaimer
Copyright © No Name 2001-2024
Page generated in: 0.046 sec.