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/zx81.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include/zx81.h') diff --git a/include/zx81.h b/include/zx81.h index 2606c98..1f77448 100644 --- a/include/zx81.h +++ b/include/zx81.h @@ -27,6 +27,8 @@ #ifndef DS81_ZX81_H #define DS81_ZX81_H +#include + #include "z80.h" #include "keyboard.h" @@ -79,6 +81,12 @@ void ZX81WritePort(Z80 *z80, Z80Word port, Z80Byte val); #define ZX81ReadDisassem ZX81ReadMem +/* Interfaces to allows the ZX81 to save/load itself as a snapshot to/from + a stream. +*/ +void ZX81SaveSnapshot(FILE *fp); +void ZX81LoadSnapshot(FILE *fp); + #endif -- cgit v1.2.3