From f62037ad64341fa37e2bba9a42acac9b09594ada Mon Sep 17 00:00:00 2001 From: Ian C Date: Tue, 10 Jan 2023 17:34:06 +0000 Subject: Changed ROM patches. Attempts to fix TAP loading. Still balking at bad files. --- source/spec.c | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'source/spec.c') 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 */ -- cgit v1.2.3