From 30d7f88c21cc8bacbe44149663e7ed28c1da99b8 Mon Sep 17 00:00:00 2001 From: Aaron Culliney Date: Sat, 8 Nov 2014 00:15:32 -0800 Subject: [PATCH] Fix emulation problem manifesting as bug in cracked version of J---- --- src/misc.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/misc.c b/src/misc.c index 8c000f96..e9767550 100644 --- a/src/misc.c +++ b/src/misc.c @@ -461,6 +461,14 @@ void c_initialize_apple_ii_memory() apple_ii_64k[1][i] = 0; } + // Stripe words of main memory on machine reset ... + // NOTE: cracked version of J---- will lock up without this + for (i = 0; i < 0xC000;) { + apple_ii_64k[0][i++] = 0xFF; + apple_ii_64k[0][i++] = 0xFF; + i += 2; + } + for (i = 0; i < 8192; i++) { language_card[0][i] = language_card[1][i] = 0;