changeset 320:67b6d351df0e

Fix check for code writes
author Mike Pavone <pavone@retrodev.com>
date Sat, 11 May 2013 01:57:41 -0700
parents 0bcab0475a7f
children 146c87616b05
files runtime.S
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/runtime.S	Sat May 11 01:38:57 2013 -0700
+++ b/runtime.S	Sat May 11 01:57:41 2013 -0700
@@ -310,7 +310,7 @@
 	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 @@
 	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