summaryrefslogtreecommitdiff
path: root/src/z80.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/z80.h')
-rw-r--r--src/z80.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/z80.h b/src/z80.h
index 66385e7..601127d 100644
--- a/src/z80.h
+++ b/src/z80.h
@@ -151,6 +151,16 @@ typedef struct
} Z80Label;
+/* The Z80 provides a number of cycle timers
+*/
+typedef enum
+{
+ eZ80_Timer_1,
+ eZ80_Timer_2,
+ eZ80_Timer_3
+} Z80Timer;
+
+
/* ---------------------------------------- INTERFACES
*/
@@ -230,6 +240,12 @@ void Z80GetState(Z80 *cpu, Z80State *state);
void Z80SetState(Z80 *cpu, const Z80State *state);
+/* Timers that count in cycle counts
+*/
+Z80Val Z80GetTimer(Z80 *cpu, Z80Timer timer);
+void Z80SetTimer(Z80 *cpu, Z80Timer timer, Z80Val cycles);
+
+
/* Set address to label mappings for the disassembler
*/
void Z80SetLabels(Z80Label labels[]);