mirror of
https://github.com/mauiaaron/apple2.git
synced 2024-12-25 09:29:48 +00:00
refactoring for clarity and adding cycle timing
This commit is contained in:
parent
ae6790ab97
commit
d599a2174a
@ -128,6 +128,8 @@ extern void *const cpu65__nmos[256];
|
|||||||
extern void *const cpu65__nmosbrk[256];
|
extern void *const cpu65__nmosbrk[256];
|
||||||
extern void *const cpu65__cmos[256];
|
extern void *const cpu65__cmos[256];
|
||||||
|
|
||||||
|
extern char cpu65__opcycles[256];// cycle counter
|
||||||
|
|
||||||
extern unsigned char cpu65__signal;
|
extern unsigned char cpu65__signal;
|
||||||
#endif /* !__ASSEMBLER__ */
|
#endif /* !__ASSEMBLER__ */
|
||||||
|
|
||||||
|
@ -19,6 +19,7 @@
|
|||||||
|
|
||||||
#ifndef __ASSEMBLER__
|
#ifndef __ASSEMBLER__
|
||||||
|
|
||||||
|
#include "common.h"
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/types.h>
|
#include <sys/types.h>
|
||||||
|
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#include "timing.h"
|
#include "timing.h"
|
||||||
|
#include "misc.h"
|
||||||
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
@ -13,7 +13,7 @@
|
|||||||
#ifndef _TIMING_H_
|
#ifndef _TIMING_H_
|
||||||
#define _TIMING_H_
|
#define _TIMING_H_
|
||||||
|
|
||||||
#define APPLE2_HZ 1020000
|
#define APPLE2_HZ 2040000
|
||||||
#define NANOSECONDS 1000000000
|
#define NANOSECONDS 1000000000
|
||||||
|
|
||||||
void timing_set_cpu_target_hz(unsigned long hz);
|
void timing_set_cpu_target_hz(unsigned long hz);
|
||||||
|
Loading…
Reference in New Issue
Block a user