tested and working read/save/patch from rom file and rom header