simple rom header parsing