Merge branch 'master' into dynarec
# Conflicts: # .github/workflows/build.yml # src/CMakeLists.txt # src/frontend/imgui/Window.cpp # src/n64/Core.cpp # src/n64/core/interpreter/cop/cop1instructions.cpp # src/n64/core/interpreter/decode.cpp # src/n64/core/registers/Cop1.cpp
This commit is contained in:
@@ -777,4 +777,30 @@ void Interpreter::trap(bool cond) {
|
||||
FireException(regs, ExceptionCode::Trap, 0, regs.oldPC);
|
||||
}
|
||||
}
|
||||
|
||||
void Cpu::mtc2(u32 instr) {
|
||||
cop2Latch = regs.gpr[RT(instr)];
|
||||
}
|
||||
|
||||
void Cpu::mfc2(u32 instr) {
|
||||
s32 value = cop2Latch;
|
||||
regs.gpr[RT(instr)] = value;
|
||||
}
|
||||
|
||||
void Cpu::dmtc2(u32 instr) {
|
||||
cop2Latch = regs.gpr[RT(instr)];
|
||||
}
|
||||
|
||||
void Cpu::dmfc2(u32 instr) {
|
||||
regs.gpr[RT(instr)] = cop2Latch;
|
||||
}
|
||||
|
||||
void Cpu::ctc2(u32) {
|
||||
|
||||
}
|
||||
|
||||
void Cpu::cfc2(u32) {
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user