summaryrefslogtreecommitdiff
path: root/emulators/dgen/patches/patch-cyclone_OpLogic.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/dgen/patches/patch-cyclone_OpLogic.cpp')
-rw-r--r--emulators/dgen/patches/patch-cyclone_OpLogic.cpp22
1 files changed, 22 insertions, 0 deletions
diff --git a/emulators/dgen/patches/patch-cyclone_OpLogic.cpp b/emulators/dgen/patches/patch-cyclone_OpLogic.cpp
new file mode 100644
index 00000000000..033f2742ddf
--- /dev/null
+++ b/emulators/dgen/patches/patch-cyclone_OpLogic.cpp
@@ -0,0 +1,22 @@
+$NetBSD: patch-cyclone_OpLogic.cpp,v 1.1 2015/03/31 15:20:53 joerg Exp $
+
+--- cyclone/OpLogic.cpp.orig 2013-02-09 20:26:18.000000000 +0000
++++ cyclone/OpLogic.cpp
+@@ -362,7 +362,7 @@ int OpSet(int op)
+ break;
+ default:
+ ot(";@ Is the condition true?\n");
+- ot(" msr cpsr_flg,r10 ;@ ARM flags = 68000 flags\n");
++ ot(" msr CPSR_f,r10 ;@ ARM flags = 68000 flags\n");
+ ot(" mvn%s r1,r1\n",cond[cc]);
+ if (ea<8) ot(" sub%s r5,r5,#2 ;@ Extra cycles\n",cond[cc]);
+ break;
+@@ -487,7 +487,7 @@ static int EmitAsr(int op,int type,int d
+ if (size==2)
+ {
+ ot(" subs r2,r2,#33\n");
+- ot(" addmis r2,r2,#33 ;@ Now r2=0-%d\n",wide);
++ ot(" addsmi r2,r2,#33 ;@ Now r2=0-%d\n",wide);
+ }
+ else
+ {