else ot(" .ltorg\n");\r
}\r
\r
-#if CYCLONE_FOR_GENESIS\r
+#if (CYCLONE_FOR_GENESIS == 2)\r
// r12=ptr to tas in table, trashes r0,r1\r
static void ChangeTAS(int norm)\r
{\r
ot("CycloneEnd%s\n", ms?"":":");\r
ot(" sub r4,r4,#2\n");\r
ot("CycloneEndNoBack%s\n", ms?"":":");\r
-#ifdef CYCLONE_FOR_PICODRIVE\r
+#if (CYCLONE_FOR_GENESIS == 2)\r
ot(" ldr r1,[r7,#0x54]\n");\r
ot(" mov r9,r9,lsr #28\n");\r
ot(" tst r1,r1\n");\r
\r
if (ms) ot("CycloneSetRealTAS\n");\r
else ot("CycloneSetRealTAS:\n");\r
-#if CYCLONE_FOR_GENESIS\r
+#if (CYCLONE_FOR_GENESIS == 2)\r
ot(" ldr r12,=CycloneJumpTab\n");\r
ot(" tst r0,r0\n");\r
ot(" add r12,r12,#0x4a00*4\n");\r
ot(" .global CycloneGetSr\n");\r
ot(" .global CycloneSetRealTAS\n");\r
ot(" .global CycloneVer\n");\r
-#ifdef CYCLONE_FOR_PICODRIVE\r
+#if (CYCLONE_FOR_GENESIS == 2)\r
ot(" .global CycloneDoInterrupt\n");\r
ot(" .global CycloneJumpTab\n");\r
#endif\r
OpStart(op,ea); Cycles=size<2?4:6;\r
if(ea >= 0x10) {\r
Cycles*=2;\r
-#ifdef CYCLONE_FOR_GENESIS\r
+#if CYCLONE_FOR_GENESIS\r
// This is same as in Starscream core, CLR uses only 6 cycles for memory EAs.\r
// May be this is similar case as with TAS opcode, but this time the dummy\r
// read is ignored somehow? Without this hack Fatal Rewind hangs even in Gens.\r
\r
OpEnd();\r
\r
-#if CYCLONE_FOR_GENESIS\r
+#if (CYCLONE_FOR_GENESIS == 2)\r
if (!gen_special && ea >= 0x10) {\r
OpTas(op, 1);\r
}\r
* the write-back phase. That will be emulated, if this option is enabled.\r
* This option also alters timing slightly.\r
*/\r
-#define CYCLONE_FOR_GENESIS 1\r
+#define CYCLONE_FOR_GENESIS 2\r
\r
/*\r
* This option compresses Cyclone's jumptable. Because of this the executable\r
* Using 0xff000000 means that only 24 least significant bits should be used.\r
* Set to 0 if you want to mask unused address bits in the memory handlers yourself.\r
*/\r
-#define MEMHANDLERS_ADDR_MASK 0xff000000\r
+#define MEMHANDLERS_ADDR_MASK 0\r
\r
/*\r
* Cyclone keeps the 4 least significant bits of SR, PC+membase and it's cycle\r