Core:
- Fix some graphical glitches on big-endian systems.
- Do some minor code cleanup.

git-svn-id: https://svn.code.sf.net/p/desmume/code/trunk@5030 5577840e-afb3-4e59-9ef3-2b7f898b1952