mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-09-27 09:56:08 +00:00
28 lines
489 B
C
28 lines
489 B
C
|
/*
|
||
|
* 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
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#ifndef _TIMING_H_
|
||
|
#define _TIMING_H_
|
||
|
|
||
|
#define APPLE2_HZ 1020000
|
||
|
#define NANOSECONDS 1000000000
|
||
|
|
||
|
void timing_set_cpu_target_hz (unsigned long hz);
|
||
|
|
||
|
void timing_set_sleep_hz (unsigned int hz);
|
||
|
|
||
|
void timing_initialize ();
|
||
|
|
||
|
void timing_throttle ();
|
||
|
|
||
|
#endif // whole file
|