Fix bugs when memory size is 0x04C00000/etc.

Was experimenting with trying to match my non-phat's ram size.
Merge pull request #3702 from unknownbrackets/remaster

Fix bugs when memory size is 0x04C00000/etc.