X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2FCyclone%2FOpMove.cpp;h=be91b18aacbe7bc256046fd6b55ceab779883684;hb=053fd9b42f2cf38194f78e37c373363fc9cb9933;hp=ac2abea81eb0d46798e1b7cfc6df31f160786515;hpb=449ecf9257636348c23bf78bf502c424a48c4201;p=picodrive.git diff --git a/cpu/Cyclone/OpMove.cpp b/cpu/Cyclone/OpMove.cpp index ac2abea..be91b18 100644 --- a/cpu/Cyclone/OpMove.cpp +++ b/cpu/Cyclone/OpMove.cpp @@ -376,23 +376,20 @@ int OpMovem(int op) OpStart(op,ea,0,1); + ot(" ldrh r11,[r4],#2 ;@ r11=register mask\n"); + ot("\n"); + 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 -#if !MEMHANDLERS_NEED_CYCLES - ot(" str r5,[r7,#0x5c] ;@ Save Cycles\n"); -#endif - ot(" ldrh r11,[r4],#2 ;@ r11=register mask\n"); ot(";@ r4=Register Index*4:\n"); if (decr) ot(" mov r4,#0x40 ;@ order reversed for -(An)\n"); else ot(" mov r4,#-4\n"); - ot("\n"); - ot(";@ Get the address into r6:\n"); - EaCalc(6,0x003f,cea,size); - ot("\n"); ot(" tst r11,r11\n"); // sanity check ot(" beq NoRegs%.4x\n",op);