X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2FCyclone%2FOpMove.cpp;h=78adae5bc52dffd709e51d72a8064ec3b39c5234;hb=25eb407c56c95255fc1b88afe084bd5ae393193d;hp=9c0bfa0793bd3314e35723686e9f38fdd5fecbda;hpb=07ceafdb04502be69d06c3b54437fd4e8b88dfbe;p=picodrive.git diff --git a/cpu/Cyclone/OpMove.cpp b/cpu/Cyclone/OpMove.cpp index 9c0bfa0..78adae5 100644 --- a/cpu/Cyclone/OpMove.cpp +++ b/cpu/Cyclone/OpMove.cpp @@ -121,16 +121,18 @@ int OpMove(int op) OpStart(op,sea,tea); Cycles=4; - EaCalcRead(-1,1,sea,size,0x003f); - if (movea==0) { - ot(" adds r1,r1,#0 ;@ Defines NZ, clears CV\n"); + EaCalcRead(-1,0,sea,size,0x003f); + ot(" adds r1,r0,#0 ;@ Defines NZ, clears CV\n"); ot(" mrs r10,cpsr ;@ r10=NZCV flags\n"); ot("\n"); } - - if (movea) size=2; // movea always expands to 32-bits + else + { + EaCalcRead(-1,1,sea,size,0x003f); + size=2; // movea always expands to 32-bits + } eawrite_check_addrerr=1; #if SPLIT_MOVEL_PD