summaryrefslogtreecommitdiff
path: root/source/spec.c
diff options
context:
space:
mode:
authorIan C <ianc@noddybox.co.uk>2023-01-10 17:34:06 +0000
committerIan C <ianc@noddybox.co.uk>2023-01-10 17:34:06 +0000
commitf62037ad64341fa37e2bba9a42acac9b09594ada (patch)
treef120252f1a8d3b080ed00ff50187263739613e55 /source/spec.c
parentf1e1f14c3de0015d1c21f8f8e226b91ba86e5e6d (diff)
Changed ROM patches. Attempts to fix TAP loading. Still balking at bad files.
Diffstat (limited to 'source/spec.c')
-rw-r--r--source/spec.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source/spec.c b/source/spec.c
index 0dc753f..596acd7 100644
--- a/source/spec.c
+++ b/source/spec.c
@@ -52,8 +52,8 @@
/* ---------------------------------------- STATICS
*/
#define ROMLEN 0x4000
-#define ROM_SAVE 0x4c6
-#define ROM_LOAD 0x562
+#define ROM_SAVE 0x4c2
+#define ROM_LOAD 0x556
#define ED_SAVE 0xf0
#define ED_LOAD 0xf1
@@ -179,6 +179,9 @@ static void RomPatch(void)
{
static const Z80Byte save[]=
{
+ 0x21, 0x3f, 0x05, /* LD HL, $053F */
+ 0xe5, /* PUSH HL */
+ 0xf3, /* DI */
0xed, ED_SAVE, /* (SAVE) */
0xc9, /* RET */
0xff /* End of patch */
@@ -186,7 +189,9 @@ static void RomPatch(void)
static const Z80Byte load[]=
{
- 0x08, /* EX AF,AF' */
+ 0x21, 0x3f, 0x05, /* LD HL, $053F */
+ 0xe5, /* PUSH HL */
+ 0xf3, /* DI */
0xed, ED_LOAD, /* (LOAD) */
0xc9, /* RET */
0xff /* End of patch */