summaryrefslogtreecommitdiff
path: root/src/snap.h
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2004-01-24 02:17:57 +0000
committerIan C <ianc@noddybox.co.uk>2004-01-24 02:17:57 +0000
commitb219c3580da55f3396a2d8df8301a777b783d833 (patch)
tree4801d6a2bb094e1fe72312d282c35b5bc21e7437 /src/snap.h
parentce8fe3339bcbb89e43542a06851c4e955dadf78f (diff)
Changed tape loading to use functions for peek/poke
Diffstat (limited to 'src/snap.h')
-rw-r--r--src/snap.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/src/snap.h b/src/snap.h
index 04d771a..d1978b6 100644
--- a/src/snap.h
+++ b/src/snap.h
@@ -35,18 +35,21 @@
/* ---------------------------------------- INTERFACES
*/
+typedef Z80Byte (*SNAP_Peek)(Z80Word address);
+typedef void (*SNAP_Poke)(Z80Word address, Z80Byte val);
+
+
/* Loads a block from a TAP file. Returns FALSE for failure.
- Won't write below location 0x4000 in mem.
*/
int TAPLoad(FILE *fp, Z80Byte id, Z80Word *addr,
- Z80Word *len, Z80Byte *mem);
+ Z80Word *len, SNAP_Poke poke);
/* Saves a block to a TAP file. Returns FALSE for failure
(which it never does as long as fp is not NULL).
*/
int TAPSave(FILE *fp, Z80Byte id, Z80Word *addr,
- Z80Word *len, Z80Byte *mem);
+ Z80Word *len, SNAP_Peek peek);
/* Copies a string. The result must be freed.