From: notaz Date: Sun, 8 Jul 2007 00:06:03 +0000 (+0000) Subject: bugfix X-Git-Tag: v1.85~706 X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60305cdd4d832c9a0b69914a78d4668a1b4d2b48;p=picodrive.git bugfix git-svn-id: file:///home/notaz/opt/svn/PicoDrive@187 be3aeb3a-fb24-0410-a615-afba39da0efa --- diff --git a/cpu/Cyclone/OpMove.cpp b/cpu/Cyclone/OpMove.cpp index 1d7165ba..b0916ea6 100644 --- a/cpu/Cyclone/OpMove.cpp +++ b/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 diff --git a/cpu/Cyclone/config.h b/cpu/Cyclone/config.h index 3af4103b..6fc6571f 100644 --- a/cpu/Cyclone/config.h +++ b/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