-
Notifications
You must be signed in to change notification settings - Fork 98
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Invalid default value in SMS header #333
Comments
https://wla-dx.readthedocs.io/en/latest/asmdiv.html#smsheader REGIONCODE should default to 4 when unspecified and ROMSIZE to:
because other values are a bad idea and might even trigger the BIOS check bug (see: https://www.smspower.org/Development/ROMHeader#ROMSize0x7fff05Bytes ) |
…ike a few commits back. Should fix GitHub issue #333.
Hi! Sorry for the delay, I've been really busy with other things... I hope it's fixed now, thanks for the report! |
The region code is fixed now, thanks. However, romsize only defaults to the correct value for the automatically calculated checksum if smsheader is present (even if there are no values set within smsheader), otherwise it defaults to zero, creating a mismatch between the romsize nibble in the header and the automatically calculated checksum. See sverx's post above for the right default values. |
… ROMSIZE value. Should fix GitHub issue #333.
Ah, the ROMSIZE value needs to be calculated and written even only .SMSCHECKSUM is defined? I missed that in a hurry. :) Does it work now better? |
Fixed for me, thanks so much! |
I'll add a test for this so if it breaks again in the future we can see that immediately. :) |
Works perfectly now, thanks. |
If not explicitly specified in SMSHEADER, the upper nibble of the byte at $7FFF defaults to 0, which is an invalid value for region information.
In older versions of WLA-DX the default value used to be 4 (= export SMS), which it should be, as it's the only value any of the BIOSes actually checks for.
The text was updated successfully, but these errors were encountered: