SM83: Fix flags on little endian PowerPC

This commit is contained in:
Vicki Pfau 2020-07-26 17:46:55 -07:00
parent ca92e59588
commit 508790445c
2 changed files with 2 additions and 1 deletions

View File

@ -10,6 +10,7 @@ Emulation fixes:
- GBA BIOS: Fix reloading video registers after reset (fixes mgba.io/i/1808)
- GBA Video: Fix invalid read in mode 4 mosaic
- GBA Video: Fix color of disabled screen
- SM83: Fix flags on little endian PowerPC
Other fixes:
- All: Correct format strings for some numbers on Windows (fixes mgba.io/i/1794)
- All: Correct more format strings on Windows (fixes mgba.io/i/1817)

View File

@ -18,7 +18,7 @@ struct SM83Core;
#pragma pack(push, 1)
union FlagRegister {
struct {
#if defined(__POWERPC__) || defined(__PPC__)
#ifdef __BIG_ENDIAN__
unsigned z : 1;
unsigned n : 1;
unsigned h : 1;