This is simple transformation tool for moving bytes around inside Intel HEX files.
Idea is following:
- Create transformation table
- Take input hex file and together with transformation table create new transformed hex file
Transformation table is heart of this tool. It has following synopsis:
4@0x12345678->0x24680abc
which can be explained like this:
how many bytes @ from source address -> to destination address
And then just have as many lines as you like.
Just call it. It has 3 positional parameters and help, nothing more, nothing less.
$ ./hexeh.py transform.cfg input.hex output.hex
Sure, why not. Just fork it and create PR.
Vojtech Vladyka, 2023