fix movem PC saving for MEMHANDLERS_NEED_PC case
authornotaz <notasas@gmail.com>
Wed, 8 Oct 2014 23:00:02 +0000 (02:00 +0300)
committernotaz <notasas@gmail.com>
Wed, 8 Oct 2014 23:00:02 +0000 (02:00 +0300)
OpMove.cpp

index 44842ee..338dab1 100644 (file)
@@ -405,10 +405,8 @@ int OpMovem(int op)
   ot(";@ Get the address into r6:\n");\r
   EaCalc(6,0x003f,cea,size);\r
 \r
-#if !MEMHANDLERS_NEED_PREV_PC\r
   // must save PC, need a spare register\r
-  ot("  str r4,[r7,#0x40] ;@ Save PC\n");\r
-#endif\r
+  FlushPC();\r
 \r
   ot(";@ r4=Register Index*4:\n");\r
   if (decr) ot("  mov r4,#0x40 ;@ order reversed for -(An)\n");\r