Browse Source

bugfix

git-svn-id: file:///home/notaz/opt/svn/PicoDrive@187 be3aeb3a-fb24-0410-a615-afba39da0efa
notaz 17 years ago
parent
commit
60305cdd4d
2 changed files with 8 additions and 8 deletions
  1. 6 6
      cpu/Cyclone/OpMove.cpp
  2. 2 2
      cpu/Cyclone/config.h

+ 6 - 6
cpu/Cyclone/OpMove.cpp

@@ -133,19 +133,19 @@ int OpMove(int op)
   if (movea) size=2; // movea always expands to 32-bits
 
 #if SPLIT_MOVEL_PD
-  EaCalc (10,0x0e00,tea,size,0,0);
   if ((tea&0x38)==0x20 && size==2) { // -(An)
+    EaCalc (10,0x0e00,tea,size,0,0);
     ot("  mov r11,r1\n");
     ot("  add r0,r10,#2\n");
     EaWrite(0,     1,tea,1,0x0e00,0,0);
     EaWrite(10,   11,tea,1,0x0e00,1);
-  } else {
-    EaWrite(0,     1,tea,size,0x0e00,0,0);
   }
-#else
-  EaCalc (0,0x0e00,tea,size,0,0);
-  EaWrite(0,     1,tea,size,0x0e00,0,0);
+  else
 #endif
+  {
+    EaCalc (0,0x0e00,tea,size,0,0);
+    EaWrite(0,     1,tea,size,0x0e00,0,0);
+  }
 
 #if CYCLONE_FOR_GENESIS && !MEMHANDLERS_CHANGE_CYCLES
   // this is a bit hacky

+ 2 - 2
cpu/Cyclone/config.h

@@ -27,7 +27,7 @@
  * Warning: if you enable this, you MUST call CycloneInit() before calling
  * CycloneRun(), or else it will crash.
  */
-#define COMPRESS_JUMPTABLE        0
+#define COMPRESS_JUMPTABLE        1
 
 /*
  * Address mask for memory hadlers. The bits set will be masked out of address
@@ -126,4 +126,4 @@
  * Bart Trzynadlowski's doc (http://www.trzy.org/files/68knotes.txt).
  * Enable this if you are emulating a 16 bit system.
  */
-#define SPLIT_MOVEL_PD            0
+#define SPLIT_MOVEL_PD            1