X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=cpu%2FCyclone%2FOpLogic.cpp;h=912d94bf773974beb62d1eb2a59d927e13adbf6d;hb=8527dc450a96f7a292b7f302e8e55147628b6042;hp=d32d34e7804dced25dc129e6b86910e6a2027cd3;hpb=449ecf9257636348c23bf78bf502c424a48c4201;p=picodrive.git diff --git a/cpu/Cyclone/OpLogic.cpp b/cpu/Cyclone/OpLogic.cpp index d32d34e..912d94b 100644 --- a/cpu/Cyclone/OpLogic.cpp +++ b/cpu/Cyclone/OpLogic.cpp @@ -40,7 +40,7 @@ int OpBtstReg(int op) EaCalcReadNoSE((type>0)?8:-1,0,tea,size,0x003f); - if (tea>=0x11) + if (tea>=0x10) ot(" and r11,r11,#7 ;@ mem - do mod 8\n"); // size always 0 else ot(" and r11,r11,#31 ;@ reg - do mod 32\n"); // size always 2 ot("\n"); @@ -94,7 +94,7 @@ int OpBtstImm(int op) EaCalcReadNoSE(-1,0,sea,0,0); ot(" mov r11,#1\n"); ot(" bic r10,r10,#0x40000000 ;@ Blank Z flag\n"); - if (tea>=0x11) + if (tea>=0x10) ot(" and r0,r0,#7 ;@ mem - do mod 8\n"); // size always 0 else ot(" and r0,r0,#0x1F ;@ reg - do mod 32\n"); // size always 2 ot(" mov r11,r11,lsl r0 ;@ Make bit mask\n");