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

Method emit_cop1_cs_write

LiveRecomp/live_generator.cpp:1739–1749  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1737}
1738
1739void N64Recomp::LiveGenerator::emit_cop1_cs_write(int reg) const {
1740 sljit_sw src;
1741 sljit_sw srcw;
1742 get_gpr_values(reg, src, srcw);
1743
1744 // Load the input register value into R0.
1745 sljit_emit_op1(compiler, SLJIT_MOV, SLJIT_R0, 0, src, srcw);
1746
1747 // Call set_cop1_cs.
1748 sljit_emit_icall(compiler, SLJIT_CALL, SLJIT_ARGS1V(32), SLJIT_IMM, sljit_sw(set_cop1_cs));
1749}
1750
1751void N64Recomp::LiveGenerator::emit_muldiv(InstrId instr_id, int reg1, int reg2) const {
1752 sljit_sw src1;

Callers

nothing calls this directly

Calls 1

get_gpr_valuesFunction · 0.85

Tested by

no test coverage detected