Page 1 of 1
Insert same bytes to multiple addresses
Posted: Wed Feb 08, 2017 11:44 pm
by robotnick
Hi
I need to insert same bytes automatically to 240 different addresses from a file but I have not found any hex editor able to do that.
Tried with Hex Editor Neo and Save/Load Selection and Copy/Paste commands but that didn't work properly (bytes get shifted).
How can I do that?
Thanks for your help!
Re: Insert same bytes to multiple addresses
Posted: Thu Feb 09, 2017 10:32 am
by atom0s
Removed.
Re: Insert same bytes to multiple addresses
Posted: Thu Feb 09, 2017 1:40 pm
by robotnick
Thanks but I don't want to replace bytes I just want to insert (not overwrite) the same bytes to many different addresses from the file. How can I do that?

Re: Insert same bytes to multiple addresses
Posted: Sat Feb 11, 2017 4:27 am
by atom0s
Removed.
Re: Insert same bytes to multiple addresses
Posted: Sat Feb 11, 2017 9:02 am
by robotnick
Sorry for my horrible English. You are right, inserting bytes shifts other data (there is no problem with that) but I want the bytes to insert remain in their right addresses (relative addresses instead of absolute addresses?)
If I paste all of them at once with Hex Editor Neo only first one remains in the right address but the other bytes to insert end up in wrong addresses because one shifts the other.
I guess I need something to insert them automatically but one by one (not at once).
Re: Insert same bytes to multiple addresses
Posted: Wed Apr 26, 2017 12:18 am
by WRS
the only way to do this woud be to override the bytes when you copy your replacements.
have you tried the INSERT key before pasting?

Re: Insert same bytes to multiple addresses
Posted: Sat Apr 29, 2017 10:53 am
by RamiroCruzo
In my view, you can do it in two ways:
1. Split the file according to your offset list, and while merging them add those bytes.
2. Maintain track of how many times you've added those bytes and add it into your offset while you go to next offset.