From fd7e3e40f6a25dd5b5a2ad60a82b9b0af72139a2 Mon Sep 17 00:00:00 2001 From: notaz Date: Thu, 9 Oct 2014 02:00:02 +0300 Subject: [PATCH] fix movem PC saving for MEMHANDLERS_NEED_PC case --- OpMove.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/OpMove.cpp b/OpMove.cpp index 44842ee..338dab1 100644 --- a/OpMove.cpp +++ b/OpMove.cpp @@ -405,10 +405,8 @@ int OpMovem(int op) ot(";@ Get the address into r6:\n"); EaCalc(6,0x003f,cea,size); -#if !MEMHANDLERS_NEED_PREV_PC // must save PC, need a spare register - ot(" str r4,[r7,#0x40] ;@ Save PC\n"); -#endif + FlushPC(); ot(";@ r4=Register Index*4:\n"); if (decr) ot(" mov r4,#0x40 ;@ order reversed for -(An)\n"); -- 2.39.5