View Full Version : IDC scripting question
disavowed
December 29th, 2002, 16:08
I'm looking to use the functionality of Edit->Patch program->Assemble in an IDC script. Is this possible?
(I would have loved to have posted this to DataRescue's webboard, but alas, I am not a registered owner)
tom_324
December 29th, 2002, 16:24
in idagui.cfg set
DISPLAY_PATCH_SUBMENU = YES // Display the Edit,Patch submenu
Tom
disavowed
December 29th, 2002, 17:48
yes, i have that already. i meant i want to be able to do something in my idc script like:
Assemble(address, user_input'ed_asm);
but, of course, there is no such idc function
tom_324
December 29th, 2002, 18:45
Maybe this can be used
// Change value of a program byte
// ea - linear address
// value - new value of the byte
void PatchByte (long ea,long value); // change a byte
Tom
disavowed
December 29th, 2002, 22:58
nope, because you can only use ida's patch functions on unexplored code
besides, i need to interpret asm code (e.g. 'nop'), whereas ida's patch functions expect hex (e.g. '0x90')
Powered by vBulletin® Version 4.2.2 Copyright © 2018 vBulletin Solutions, Inc. All rights reserved.