use mem mapping for idle loop det
[picodrive.git] / cpu / Cyclone / OpAny.cpp
index 0ada13f..a50114a 100644 (file)
@@ -5,7 +5,7 @@ int opend_op_changes_cycles, opend_check_interrupt, opend_check_trace;
 \r
 static unsigned char OpData[16]={0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};\r
 \r
-static unsigned short CPU_CALL OpRead16(unsigned int a)\r
+static unsigned short OpRead16(unsigned int a)\r
 {\r
   return (unsigned short)( (OpData[a&15]<<8) | OpData[(a+1)&15] );\r
 }\r
@@ -133,17 +133,17 @@ int OpBase(int op,int size,int sepa)
 // Get flags, trashes r2\r
 int OpGetFlags(int subtract,int xbit,int specialz)\r
 {\r
-  if (specialz) ot("  orr r2,r9,#0xb0000000 ;@ for old Z\n");\r
+  if (specialz) ot("  orr r2,r10,#0xb0000000 ;@ for old Z\n");\r
 \r
-  ot("  mrs r9,cpsr ;@ r9=flags\n");\r
+  ot("  mrs r10,cpsr ;@ r10=flags\n");\r
 \r
-  if (specialz) ot("  andeq r9,r9,r2 ;@ fix Z\n");\r
+  if (specialz) ot("  andeq r10,r10,r2 ;@ fix Z\n");\r
 \r
-  if (subtract) ot("  eor r9,r9,#0x20000000 ;@ Invert carry\n");\r
+  if (subtract) ot("  eor r10,r10,#0x20000000 ;@ Invert carry\n");\r
 \r
   if (xbit)\r
   {\r
-    ot("  str r9,[r7,#0x4c] ;@ Save X bit\n");\r
+    ot("  str r10,[r7,#0x4c] ;@ Save X bit\n");\r
   }\r
   return 0;\r
 }\r