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


Forums > CSDb Discussions > Overclock the 6502?
2017-05-18 13:55
pmprog
Account closed

Registered: Nov 2005
Posts: 54
Overclock the 6502?

I've been keeping an eye on the ZX Spectrum Next, and one of the features they've put in is a turbo button to run the Z80 at 7MHz rather than 3.5MHz

https://youtu.be/LOl9zJDLgvs

I never had a speccy to tell, but it seems make a difference without just playing the whole thing at twice the speed.

Would a similar thing be doable on a C64? and would it actually provide any benefit to any games or apps?

I'm also curious how their colour upgrade example in Cybernoid 2 works, unless it's a patched game
2017-05-18 14:25
lft

Registered: Jul 2007
Posts: 369
This is already built into the C128. That's probably the easiest way to check what effect it has on games and applications.
2017-05-18 14:53
chatGPZ

Registered: Dec 2001
Posts: 11357
its not that easy, since the entire system is based on a single clock... so you will at least need some additional logic to deal with that (like the various turbo cards do). or run most of the system at higher speed, like kisiels turbo-demo-card did. both ways have its own problems, and are likely not very compatible with existing code.
2017-05-18 14:55
pmprog
Account closed

Registered: Nov 2005
Posts: 54
Interesting, didn't realise that. Thanks.

Although from what I've read (quickly), if you try the 2MHz in C64 mode, you can only use it during VSync, otherwise it breaks things. But I guess if the software runs directly in C128 mode, that should be a pretty good check :)

References:
http://sleepingelephant.com/ipw-web/bulletin/bb/viewtopic.php?t..

http://www.lemon64.com/forum/viewtopic.php?t=59800
2017-05-18 16:42
Oswald

Registered: Apr 2002
Posts: 5086
what happens in c128 2mhz cpu mode is that there are no free BUS cycles for the VICII to read memory to display gfx. So you see garbage, as the VICII reads for gfx what was left there in the previous cycle by the cpu.

thats why it only makes sense to use it on top/bottom borders only. however nothing stops you from using it all the time. only thing VicII display will be garbage.

the 80 column chip is safe from this at it has its own memory that can only be accessed by the cpu trough its registers.
2017-05-18 16:45
oziphantom

Registered: Oct 2014
Posts: 490
On the C64 you need to overclock the VIC chip not the CPU ;) If we can get a FPGA dropin VIC and fiddle with the clock, we a good to go ;)
2017-05-18 18:36
chatGPZ

Registered: Dec 2001
Posts: 11357
Quote:
So you see garbage, as the VICII reads for gfx what was left there in the previous cycle by the cpu.

still waiting for the c128 demo that would *still* display some graphics :)
2017-05-18 19:05
Oswald

Registered: Apr 2002
Posts: 5086
risen from oblivion displays gfx in 2mhz mode. that is the very first fx. idle byte and lda #gfx code, hence VICII reads the bus every 2nd cycle.
2017-05-18 19:16
chatGPZ

Registered: Dec 2001
Posts: 11357
mmmh are you sure? iirc that works in x128 - which doesnt emulate the 2mhz idle fetch correctly :)
2017-05-18 19:44
Oswald

Registered: Apr 2002
Posts: 5086
Quote: mmmh are you sure? iirc that works in x128 - which doesnt emulate the 2mhz idle fetch correctly :)

iirc graham told me on irc its done like that. but can you imagine any other way ? the vallejo pic is by somehow fucking up the VIC internal counters and it thinks it still on the middle of the screen, but thats just a wild guess, based on my experiments where I could push the top/bot border to the middle of the screen.
2017-05-18 19:56
White Flame

Registered: Sep 2002
Posts: 136
Given the high number of clock cycles per instruction on the Z80, it wouldn't surprise me if it had a ton of dead bus cycles. If that's the case, one could conceivably see increasing just the clock rate of the CPU, but still work on the same speed memory bus, just with higher density of operations. As the speccy a framebuffer machine, there's also far fewer things that require cycle-precise timing in normal bitmap games.

The 6502 has very few dead bus cycles. The 65c02 and later reduced the cycle count of some of those as well. But if you change the timing of anything in the CPU, tons of stuff breaks regarding C64 software.

(of course, I have very little clue about the z80 and the above might just be random mumbo jumbo)
2017-05-18 20:21
chatGPZ

Registered: Dec 2001
Posts: 11357
oswald: looks like i remembered wrong - that gfx doesnt show in x128 at all :) something to fix! :=)
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
Shez/House Designs
Jazzcat/Onslaught
Paladin/G★P
zscs
KEF
kbs/Pht/Lxt
rexbeng
Jammer
RS-232
Guests online: 114
Top Demos
1 Next Level  (9.7)
2 13:37  (9.7)
3 Coma Light 13  (9.7)
4 Edge of Disgrace  (9.6)
5 Mojo  (9.6)
6 The Demo Coder  (9.6)
7 What Is The Matrix 2  (9.6)
8 Uncensored  (9.6)
9 Wonderland XIV  (9.6)
10 Comaland 100%  (9.6)
Top onefile Demos
1 Layers  (9.6)
2 Party Elk 2  (9.6)
3 Cubic Dream  (9.6)
4 Copper Booze  (9.6)
5 Libertongo  (9.5)
6 Rainbow Connection  (9.5)
7 Onscreen 5k  (9.5)
8 Morph  (9.5)
9 Dawnfall V1.1  (9.5)
10 It's More Fun to Com..  (9.5)
Top Groups
1 Performers  (9.3)
2 Booze Design  (9.3)
3 Oxyron  (9.3)
4 Nostalgia  (9.3)
5 Triad  (9.2)
Top Fullscreen Graphicians
1 Joe  (9.7)
2 Veto  (9.6)
3 Facet  (9.6)
4 The Sarge  (9.6)
5 Carrion  (9.5)

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