diff options
author | Ian C <ianc@noddybox.co.uk> | 2004-01-24 02:17:57 +0000 |
---|---|---|
committer | Ian C <ianc@noddybox.co.uk> | 2004-01-24 02:17:57 +0000 |
commit | b219c3580da55f3396a2d8df8301a777b783d833 (patch) | |
tree | 4801d6a2bb094e1fe72312d282c35b5bc21e7437 /src/snap.h | |
parent | ce8fe3339bcbb89e43542a06851c4e955dadf78f (diff) |
Changed tape loading to use functions for peek/poke
Diffstat (limited to 'src/snap.h')
-rw-r--r-- | src/snap.h | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -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. |