I'm getting "68K Address Error" when I try to run my homebrew game in EverDrive

Messages
1
Hi.
I am working on a demo game for the MegaDrive.
It works 100% fine in multiple emulators.
But, when I copy it to everdrive and try to run it, it says "68K: Address Error" and won't start the game.
The game is written in Assembly, so it is only 56K - it's more of a demo, not a full game.
I have padded the bin file to use 1024k, and I have also fixed the checksum, bt it still won't work.
Any ideas what could be happening?
Thanks.
 
you're either reading/writing a word/long at an odd address, or jumping to an odd address. both result in an address error exception on the 68K.
reading/writing bytes at an odd address is not an issue, but words or longs need to be located in an even address (i.e. $FFFF32 works for all three types, $FFFF33 works only for bytes).
attempting to execute code from an odd address also generates the exception (you can execute code at address $3944 and $3946, but not $3945). but in this case, unless you have data that pushes your code to an odd address (the Sonic disassemblies have a useful macro for this, even, that will pad to the nearest even address), you shouldn't worry.
the emulators you've tried are likely just inaccurate.
the checksum in the header only matters if you check it yourself, to my knowledge.
also, why did you pad to 1024K if your ROM is only 56K?
 
Upvote 0
Back
Top