* Tactic T1: replace the instruction with a prefixed punned jump. */
| 483 | * Tactic T1: replace the instruction with a prefixed punned jump. |
| 484 | */ |
| 485 | static 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 | } |
| 497 | static Patch *tactic_T1(Binary &B, Instr *I, const Trampoline *T, |
| 498 | Tactic tactic = TACTIC_T1) |
| 499 | { |