]> localhost Git - WindEmu.git/commitdiff
Fix half word store/loads
authorGeorge Wright <gw@gwright.org.uk>
Sat, 7 Dec 2024 19:45:27 +0000 (11:45 -0800)
committerGeorge Wright <gw@gwright.org.uk>
Sat, 7 Dec 2024 19:45:27 +0000 (11:45 -0800)
WindCore/arm710.cpp

index dbb481270c6599deb6c2b6287762911989fce269..226ae106bc68724fe710e523bfc8389bc92246b1 100644 (file)
@@ -463,9 +463,9 @@ uint32_t ARM710::execSingleHalfWordDataTransfer(uint32_t PUIWL, uint32_t Rn, uin
 {
        bool load = extract1(PUIWL, 0);
        bool writeback = extract1(PUIWL, 1);
-       bool immediate = extract1(PUIWL, 3);
-       bool up = extract1(PUIWL, 4);
-       bool preIndex = extract1(PUIWL, 5);
+       bool immediate = extract1(PUIWL, 2);
+       bool up = extract1(PUIWL, 3);
+       bool preIndex = extract1(PUIWL, 4);
 
        uint32_t LSH = ((PUIWL << 2) | SH) & 0x7;
        ValueSize valueSize;