metroid-maniac / SCFW

SCFW Supercard Custom Firmware & Kernel
GNU General Public License v3.0
105 stars 4 forks source link

Minor enhancement - SMSAdvance implementation #14

Closed OmDRetro closed 3 months ago

OmDRetro commented 3 months ago

Bug for tracking purposes

Checked the header format from the last known version (SMSAdvance v2.5)

Header data consists of the ff.:

Size Header Info
4 bytes Identifier = "SMS",0x1A
4 bytes ROM size
2 bytes ROM flags
1 byte Branch hacks, bit 0-3: opcode, bit 4-7: length. (not yet).
1 byte Reserved (set to 0)
4 bytes Autoscroll value (a.k.a. "sprite following")
1 byte BIOS flag, bit0=1 for BIOS rom.
15 bytes Reserved (set to 0)
32 bytes ROM title (NULL terminated)

ROM flags:

OmDRetro commented 3 months ago

Seems the identifier is terminated with a hex value. Based on what the compilation executable does, also called SMSAdvance, the output rom has 0x1A (shifted left by 24 bits)

First 64 bytes

OmDRetro commented 3 months ago

Done! Pushed changes via commit 3adbe6f