summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2013-05-11 01:57:41 -0700
committerMike Pavone <pavone@retrodev.com>2013-05-11 01:57:41 -0700
commit6ab97fce20853a8b04f40ff747f3ef108fdaf59a (patch)
tree80c9a4dfdc4e7cc8fcd0c6491c9a27933a9214c4
parentfebd036b1a55c877e8d479d1cda8a3291d5a56e5 (diff)
Fix check for code writes
-rw-r--r--runtime.S4
1 files changed, 2 insertions, 2 deletions
diff --git a/runtime.S b/runtime.S
index 8c8473b..a1115e3 100644
--- a/runtime.S
+++ b/runtime.S
@@ -310,7 +310,7 @@ workram_w:
and $0xFFFF, %edi
mov %cx, (%r9, %rdi)
mov %edi, %ecx
- shr $10, %ecx
+ shr $11, %ecx
bt %ecx, 160(%rsi)
jnc not_code
call m68k_save_context
@@ -399,7 +399,7 @@ workram_wb:
and $0xFFFF, %rdi
mov %cl, (%r9, %rdi)
mov %edi, %ecx
- shr $10, %ecx
+ shr $11, %ecx
bt %ecx, 160(%rsi)
jnc not_code_b
xor $1, %edi