From: notaz Date: Wed, 8 Oct 2014 23:00:02 +0000 (+0300) Subject: fix movem PC saving for MEMHANDLERS_NEED_PC case X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd7e3e40f6a25dd5b5a2ad60a82b9b0af72139a2;p=cyclone68000.git fix movem PC saving for MEMHANDLERS_NEED_PC case --- 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");