For SNES and NES titles, special formats are used for headers, footers, and sounds.
As for NES, it also introduces it in the blog, so come on! (I'm sorry it is Japanese so please use google translation)
http://haxnume.hatenablog.com/entry/2017/10/28/230727