summaryrefslogtreecommitdiff
path: root/include/z80.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2008-11-03 17:07:32 +0000
committerIan C <ianc@noddybox.co.uk>2008-11-03 17:07:32 +0000
commit603f3fac82ccb77775d53fd77ae7c32167116ad7 (patch)
tree912d684087250ca5cac6e597e06277f1c83f33b0 /include/z80.h
parent1aaaca17a1dc30727578e5fa3755ee6fc05b238d (diff)
Initial snapshot code (in progress)
Diffstat (limited to 'include/z80.h')
-rw-r--r--include/z80.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/z80.h b/include/z80.h
index 000b950..1250356 100644
--- a/include/z80.h
+++ b/include/z80.h
@@ -27,6 +27,8 @@
#ifndef Z80_H
#define Z80_H "$Id$"
+#include <stdio.h>
+
/* Configuration
*/
#include "z80_config.h"
@@ -245,6 +247,11 @@ void Z80SetLabels(Z80Label labels[]);
*/
const char *Z80Disassemble(Z80 *cpu, Z80Word *addr);
+/* Allows the CPU state to be saved/loaded from a stream
+*/
+void Z80SaveSnapshot(Z80 *cpu, FILE *fp);
+void Z80LoadSnapshot(Z80 *cpu, FILE *fp);
+
#endif
/* END OF FILE */