How to recognize if SNES ROM image headerd or not

Discussion of development of software for any "obsolete" computer or video game system.
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 » Sat Mar 13, 2021 5:47 pm

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: 10458
Joined: Sun Apr 13, 2008 11:12 am
Location: Seattle

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

Post by lidnariq » Sat Mar 13, 2021 6:02 pm

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