2013-07-06 04:37:13 +00:00
|
|
|
/*
|
2013-06-28 06:36:25 +00:00
|
|
|
* Apple // emulator for Linux
|
|
|
|
*
|
|
|
|
* CPU Timing Support.
|
|
|
|
*
|
|
|
|
* Mostly this adds support for specifically throttling the emulator speed to
|
|
|
|
* match a 1.02MHz Apple //e.
|
|
|
|
*
|
|
|
|
* Added 2013 by Aaron Culliney
|
2013-07-06 04:37:13 +00:00
|
|
|
*
|
2013-06-28 06:36:25 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef _TIMING_H_
|
|
|
|
#define _TIMING_H_
|
|
|
|
|
2013-07-22 00:20:03 +00:00
|
|
|
#define APPLE2_HZ 1020000
|
2013-06-28 06:36:25 +00:00
|
|
|
#define NANOSECONDS 1000000000
|
|
|
|
|
2013-07-22 00:20:03 +00:00
|
|
|
// 0 = run as fast as possible, 1 = approximate apple, X = 1/X rate
|
|
|
|
void timing_set_cpu_scale(unsigned int scale);
|
2013-06-28 06:36:25 +00:00
|
|
|
|
2013-07-06 04:37:13 +00:00
|
|
|
void timing_initialize();
|
2013-06-28 06:36:25 +00:00
|
|
|
|
2013-07-06 04:37:13 +00:00
|
|
|
void timing_throttle();
|
2013-06-28 06:36:25 +00:00
|
|
|
|
|
|
|
#endif // whole file
|