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 > Detect C128 in C64-mode without exploiting 2mhz mode?
2020-04-03 08:04
JackAsser

Registered: Jun 2002
Posts: 2014
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: 2014
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: 5095
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: 2981
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: 2014
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: 2981
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: 11387
But what if i put a VDC in my C64?
2021-09-29 18:49
Oswald

Registered: Apr 2002
Posts: 5095
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: 2014
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: 1790
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: 2014
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
Matt/The Coop
Mr. Mouse/XeNTaX/G*P
swasti
curtcool
CA$H/TRiAD
kbs/Pht/Lxt
Bieno/Commodore Plus
Sillicon/Unreal
The Syndrom/TIA/Pret..
Knut Clausen/SHAPE/F..
Guests online: 111
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Mojo  (9.6)
4 Coma Light 13  (9.6)
5 The Demo Coder  (9.6)
6 Edge of Disgrace  (9.6)
7 What Is The Matrix 2  (9.6)
8 Sprite Bukkake 2  (9.6)
9 Uncensored  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.7)
2 Cubic Dream  (9.6)
3 Party Elk 2  (9.6)
4 Copper Booze  (9.6)
5 Rainbow Connection  (9.5)
6 Morph  (9.5)
7 Dawnfall V1.1  (9.5)
8 Libertongo  (9.5)
9 Katzen-Video.mp4  (9.5)
10 Onscreen 5k  (9.5)
Top Groups
1 Booze Design  (9.3)
2 Oxyron  (9.3)
3 Performers  (9.3)
4 Fairlight  (9.3)
5 Triad  (9.3)
Top Crackers
1 Mr. Z  (9.9)
2 Antitrack  (9.8)
3 OTD  (9.8)
4 Fungus  (9.8)
5 S!R  (9.8)

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