Login [Register]
Don't have an account? Register now to chat, post, use our tools, and much more.
Here's a safe overclocking function I've written based on gbl08ma's advice for my emulator. Because I made the mistake of blindly changing the clock frequency (based on errant wiki informaton!) I decided someone should use the Ptune2 code by sentaro (https://www.cemetech.net/forum/viewtopic.php?t=10870) as a basis and create a safe and easy way to get more cycles, since most people like better refresh rates Smile

Info in the .h file (you just add these files to your project, include the .h and call SetSafeClockSpeed(...)

Download: https://drive.google.com/file/d/0B656suLvu8ysWFpyZTZxZ09OX0k/view?usp=sharing
Looks great, I would only add one more thing to this library: a way to save the current clock speed so that it can be restored when the program exits. So the library could be used more or less like this:


Code:

// perhaps using SafeClockSpeed as the type here is not a very good idea, as the calc might be currently using settings not available in the enum. You get the idea
SafeClockSpeed previousSpeed = GetSafeClockSpeed();
SetSafeClockSpeed(SCS_Double);

// do your thing at faster speed (or slower, if the calc was previously overclocked beyond SCS_Double)
// on the function passed to SetQuitHandler:
SetSafeClockSpeed(previousSpeed);


This ensures the original setting will be resumed when the program exits. The recommended usage in your .h will blindly set the speed back to the Casio default one, which means that users will then need to go into Ptune2 to resume the previous overclock.
So sentaro got me a much better extraction of ptune here: https://www.cemetech.net/forum/viewtopic.php?p=257338

I'll be incorporating his changes, and gbl08ma's suggestions and put together a more complete version in the next day or two when I have time.
  
Register to Join the Conversation
Have your own thoughts to add to this or any other topic? Want to ask a question, offer a suggestion, share your own programs and projects, upload a file to the file archives, get help with calculator and computer programming, or simply chat with like-minded coders and tech and calculator enthusiasts via the site-wide AJAX SAX widget? Registration for a free Cemetech account only takes a minute.

» Go to Registration page
Page 1 of 1
» All times are GMT - 5 Hours
 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum

 

Advertisement