Fix bugs when memory size is 0x04C00000/etc.

Was experimenting with trying to match my non-phat's ram size.