MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / xJcc32

Function xJcc32

common/emitter/jmp.cpp:150–162  ·  view source on GitHub ↗

------------------------------------------------------------------------ Emits a 32 bit jump, and returns a pointer to the 32 bit displacement. (displacements should be assigned relative to the end of the jump instruction, or in other words *(retval+1) )

Source from the content-addressed store, hash-verified

148 // (displacements should be assigned relative to the end of the jump instruction,
149 // or in other words *(retval+1) )
150 __emitinline s32* xJcc32(JccComparisonType comparison, s32 displacement)
151 {
152 if (comparison == Jcc_Unconditional)
153 xWrite8(0xe9);
154 else
155 {
156 xWrite8(0x0f);
157 xWrite8(0x80 | comparison);
158 }
159 xWrite<s32>(displacement);
160
161 return ((s32*)xGetPtr()) - 1;
162 }
163
164 // ------------------------------------------------------------------------
165 // Emits a 32 bit jump, and returns a pointer to the 8 bit displacement.

Callers 6

psxSetBranchImmFunction · 0.85
iopRecRecompileFunction · 0.85
iBranchTestFunction · 0.85
recSkipTimeoutLoopFunction · 0.85
recRecompileFunction · 0.85
xJccKnownTargetFunction · 0.85

Calls 2

xWrite8Function · 0.85
xGetPtrFunction · 0.85

Tested by

no test coverage detected