------------------------------------------------------------------------ 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) )
| 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. |
no test coverage detected