Skip to content

FireFlyEx/HexAlter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 

Repository files navigation

HexAlter v0.3

This is a quick (but hopefully not dirty) implementation of a primitive command-line hex editor. Usage is very simple:

hexalter [-i] file address1=hex1,hex2,...,hexn addressn=hex1,...,hexn

HexAlter will either modify files directly, or with the -i option it will create an IPS file for ROM patching.

For example:

hexalter foo.txt 0x4=0x31,0x32,0x33 0x20=0xa0 0xff=0x34 0x29f8=0x20

Will make the following changes:

[ Offset Address | New Hex Value | New Char8_t Value ]

0x4       |    31    |    1  
0x5       |    32    |    2  
0x6       |    33    |    3  
0x20      |    A0  
0xFF      |    34    |    4  
0x29F8    |    20  

Or:

hexalter -i foo.ips 0x4=0x31,0x32,0x33 0x20=0xa0 0xff=0x34 0x29f8=0x20

Creates foo.ips, which can be used to make the above mentioned changes.

Addresses may not overlap. If offset address is out of range or values aren't entered in hexadecimal, HexAlter should refuse to patch. IPS files are bound to 16MB, due to a limitation in IPS's ability to only store 24-bit addresses.

If during the actual apply phase some error happens, only some changes might be applied.

About

CLI Hex Editor

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C 100.0%