summaryrefslogtreecommitdiff
path: root/source/spec.c
diff options
context:
space:
mode:
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 */