MCPcopy Create free account
hub / github.com/GJDuck/e9patch / canApplyT1

Function canApplyT1

src/e9patch/e9tactics.cpp:485–496  ·  view source on GitHub ↗

* Tactic T1: replace the instruction with a prefixed punned jump. */

Source from the content-addressed store, hash-verified

483 * Tactic T1: replace the instruction with a prefixed punned jump.
484 */
485static bool canApplyT1(const Instr *I, unsigned prefix)
486{
487 switch (I->STATE[prefix])
488 {
489 case STATE_INSTRUCTION:
490 return (prefix < I->size);
491 case STATE_FREE:
492 return true;
493 default:
494 return false;
495 }
496}
497static Patch *tactic_T1(Binary &B, Instr *I, const Trampoline *T,
498 Tactic tactic = TACTIC_T1)
499{

Callers 1

tactic_T1Function · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected