diff --git a/src/device/cop0.rs b/src/device/cop0.rs index 99c2497..750ea6c 100644 --- a/src/device/cop0.rs +++ b/src/device/cop0.rs @@ -223,10 +223,10 @@ fn set_control_registers(device: &mut device::Device, index: u32, mut data: u64) ); device.cpu.cop0.regs[COP0_CAUSE_REG as usize] &= !COP0_CAUSE_IP7; } - COP0_STATUS_REG => { - if data & COP0_STATUS_FR != device.cpu.cop0.regs[index as usize] & COP0_STATUS_FR { - device::cop1::set_fgr_registers(device, data) - } + COP0_STATUS_REG + if data & COP0_STATUS_FR != device.cpu.cop0.regs[index as usize] & COP0_STATUS_FR => + { + device::cop1::set_fgr_registers(device, data) } _ => {} } diff --git a/src/device/rsp_vu_instructions.rs b/src/device/rsp_vu_instructions.rs index 5d961a9..4333daf 100644 --- a/src/device/rsp_vu_instructions.rs +++ b/src/device/rsp_vu_instructions.rs @@ -844,7 +844,7 @@ pub fn vrcpl(device: &mut device::Device, opcode: u32) { let vte = vte(device, vt(opcode), ve(opcode) as usize); let input = if device.rsp.cpu.divdp { ((device.rsp.cpu.divin as i32) << 16) - | get_vpr16(device.rsp.cpu.vpr[vt(opcode) as usize], ve(opcode) as u8) as u16 as i32 + | get_vpr16(device.rsp.cpu.vpr[vt(opcode) as usize], ve(opcode) as u8) as i32 } else { get_vpr16(device.rsp.cpu.vpr[vt(opcode) as usize], ve(opcode) as u8) as i16 as i32 }; @@ -901,7 +901,7 @@ pub fn vrsql(device: &mut device::Device, opcode: u32) { let vte = vte(device, vt(opcode), ve(opcode) as usize); let input = if device.rsp.cpu.divdp { ((device.rsp.cpu.divin as i32) << 16) - | get_vpr16(device.rsp.cpu.vpr[vt(opcode) as usize], ve(opcode) as u8) as u16 as i32 + | get_vpr16(device.rsp.cpu.vpr[vt(opcode) as usize], ve(opcode) as u8) as i32 } else { get_vpr16(device.rsp.cpu.vpr[vt(opcode) as usize], ve(opcode) as u8) as i16 as i32 };