How to recognize if SNES ROM image headerd or not

Discussion of development of software for any "obsolete" computer or video game system. See the WSdev wiki and ObscureDev wiki for more information on certain platforms.
Post Reply
AnisSaouliBH
Posts: 16
Joined: Fri Aug 21, 2020 10:55 am

How to recognize if SNES ROM image headerd or not

Post by AnisSaouliBH »

hey, i’m writing a program and i need to know how to make it recognize if the snes rom is headerd or not.

Well maybe a sample code will help. 8-)
lidnariq
Posts: 11432
Joined: Sun Apr 13, 2008 11:12 am

Re: How to recognize if SNES ROM image headerd or not

Post by lidnariq »

1- Check if the file size is a multiple of 32768 bytes (not headered), or if it's 512 bytes more than that (headered).
2- Check for valid internal headers at offsets 0x7FB0, and/or plus +0x200, and/or plus +0x8000, and/or plus +0x400000.
Post Reply