/* patch with this script from 0x40129C to 0x401349 */ #include static patchIt(void) { auto currentPos, endPos; currentPos = SelStart(); if (currentPos != BADADDR) endPos = SelEnd(); else { Message("Please select a region toi patch\n"); return; } Message("Scanning from %x to %x\n", currentPos, endPos); for (;currentPos < endPos; currentPos++) { PatchByte(currentPos, Byte(currentPos) + 1); MakeRptCmt(currentPos, "<== patched here"); } Message("AddOne done ;)\n"); }