MCPcopy Create free account
hub / github.com/N64Recomp/N64Recomp / emit_cop0_status_write

Method emit_cop0_status_write

LiveRecomp/live_generator.cpp:1708–1719  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1706}
1707
1708void N64Recomp::LiveGenerator::emit_cop0_status_write(int reg) const {
1709 sljit_sw src;
1710 sljit_sw srcw;
1711 get_gpr_values(reg, src, srcw);
1712
1713 // Load ctx and the input register value into R0 and R1
1714 sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_R0, 0, Registers::ctx, 0);
1715 sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_R1, 0, src, srcw);
1716
1717 // Call cop0_status_write.
1718 sljit_emit_icall(compiler, SLJIT_CALL, SLJIT_ARGS2V(P,32), SLJIT_IMM, sljit_sw(inputs.cop0_status_write));
1719}
1720
1721void N64Recomp::LiveGenerator::emit_cop1_cs_read(int reg) const {
1722 // Skip the read if the target is the zero register.

Callers

nothing calls this directly

Calls 1

get_gpr_valuesFunction · 0.85

Tested by

no test coverage detected