avoid using msr
[cyclone68000.git] / OpArith.cpp
index d762049..ca279da 100644 (file)
@@ -373,7 +373,7 @@ int GetXBit(int subtract)
   ot(";@ Get X bit:\n");\r
   ot("  ldr r2,[r7,#0x4c]\n");\r
   if (subtract) ot("  mvn r2,r2 ;@ Invert it\n");\r
-  ot("  msr cpsr_flg,r2 ;@ Get into Carry\n");\r
+  ot("  tst r2,r2,lsl #3 ;@ Get into Carry\n");\r
   ot("\n");\r
   return 0;\r
 }\r