summaryrefslogtreecommitdiff
path: root/source/snap.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2023-01-09 15:11:53 +0000
committerIan C <ianc@noddybox.co.uk>2023-01-09 15:11:53 +0000
commit2df835d00591d085de589ddf4d40ea3edc8f3fac (patch)
tree01bce387296a3590a26eb0856a51f12f9f207242 /source/snap.c
parent5b9ffe70b622cee65ed5678163bee0e22fc0433d (diff)
Added support for debug logging over a socket.
Diffstat (limited to 'source/snap.c')
-rw-r--r--source/snap.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/snap.c b/source/snap.c
index e998ba2..db8c785 100644
--- a/source/snap.c
+++ b/source/snap.c
@@ -25,6 +25,7 @@
#include <stdio.h>
#include "snap.h"
+#include "debug.h"
/* ---------------------------------------- MACROS
*/
@@ -111,6 +112,10 @@ int TAPLoad(Z80Byte id, Z80Word *addr, Z80Word *len, SNAP_Poke poke)
type=GetTAPByte();
csum=id;
+ SPEC_DEBUG("Read block. len=%u type=%u\n", (unsigned)blen, (unsigned)type);
+ SPEC_DEBUG("Requested block len=%u type=%u addr=%u\n",
+ (unsigned)*len, (unsigned)id, (unsigned)*addr);
+
/* Have we found the requested block?
*/
if (id==type)