refactoring for clarity and adding cycle timing

This commit is contained in:
Aaron Culliney 2013-07-07 20:52:30 -07:00
parent ae6790ab97
commit d599a2174a
5 changed files with 1269 additions and 814 deletions

2077
src/cpu.S

File diff suppressed because it is too large Load Diff

View File

@ -128,6 +128,8 @@ extern void *const cpu65__nmos[256];
extern void *const cpu65__nmosbrk[256];
extern void *const cpu65__cmos[256];
extern char cpu65__opcycles[256];// cycle counter
extern unsigned char cpu65__signal;
#endif /* !__ASSEMBLER__ */

View File

@ -19,6 +19,7 @@
#ifndef __ASSEMBLER__
#include "common.h"
#include <unistd.h>
#include <sys/types.h>

View File

@ -11,6 +11,7 @@
*/
#include "timing.h"
#include "misc.h"
#include <stdlib.h>
#include <stdio.h>

View File

@ -13,7 +13,7 @@
#ifndef _TIMING_H_
#define _TIMING_H_
#define APPLE2_HZ 1020000
#define APPLE2_HZ 2040000
#define NANOSECONDS 1000000000
void timing_set_cpu_target_hz(unsigned long hz);