| 770 | } |
| 771 | |
| 772 | void SW() |
| 773 | { |
| 774 | u32 addr = cpuRegs.GPR.r[_Rs_].UL[0] + _Imm_; |
| 775 | |
| 776 | if (addr & 3) [[unlikely]] |
| 777 | RaiseAddressError(addr, true); |
| 778 | |
| 779 | memWrite32(addr, cpuRegs.GPR.r[_Rt_].UL[0]); |
| 780 | } |
| 781 | |
| 782 | static const u32 SWL_MASK[4] = { 0xffffff00, 0xffff0000, 0xff000000, 0x00000000 }; |
| 783 | static const u32 SWR_MASK[4] = { 0x00000000, 0x000000ff, 0x0000ffff, 0x00ffffff }; |
no test coverage detected