From 603f3fac82ccb77775d53fd77ae7c32167116ad7 Mon Sep 17 00:00:00 2001 From: Ian C Date: Mon, 3 Nov 2008 17:07:32 +0000 Subject: Initial snapshot code (in progress) --- include/z80.h | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'include/z80.h') 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 + /* 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 */ -- cgit v1.2.3