I've decided to release my own utility to help me in my ROM-hacking efforts. It's a commandline-tool (for Windows) that parses a textfile that describes how to patch a file. It has saved me many hours of editing instead of using a hex-editor and makes life alot easier if things starts to go wrong.
An example script could look like this:
All addresses are file-offsets. The incbin-at the end includes my own compiled code at that specific location.
The parser is pretty strict at the moment (mostly due to my laziness) but it'll get the job done..
There's a basic set of instructions implemented, but of course, there's always room for improvement.
The fileformat isn't really suitable for distribution (like .ips) but more for internal development.
If you're interested, it can be download from my website: http://nes.goondocks.se
An example script could look like this:
Code:
poke #$20,$5a73
poke #$23,$5a74
poke #$a9,$5a75
poke #$ea,$5a76
poke #$12,$6
incbin "Mariobros.bin",$2930
poke #$23,$5a74
poke #$a9,$5a75
poke #$ea,$5a76
poke #$12,$6
incbin "Mariobros.bin",$2930
All addresses are file-offsets. The incbin-at the end includes my own compiled code at that specific location.
The parser is pretty strict at the moment (mostly due to my laziness) but it'll get the job done..
There's a basic set of instructions implemented, but of course, there's always room for improvement.
The fileformat isn't really suitable for distribution (like .ips) but more for internal development.
If you're interested, it can be download from my website: http://nes.goondocks.se