mirror of https://github.com/mgba-emu/mgba.git
SM83: Fix flags on little endian PowerPC
This commit is contained in:
parent
c7035f6c34
commit
a786be5bdf
1
CHANGES
1
CHANGES
|
@ -29,6 +29,7 @@ Emulation fixes:
|
||||||
- GBA Video: Fix invalid read in mode 4 mosaic
|
- GBA Video: Fix invalid read in mode 4 mosaic
|
||||||
- GBA Video: Fix color of disabled screen
|
- GBA Video: Fix color of disabled screen
|
||||||
- SM83: Emulate HALT bug
|
- SM83: Emulate HALT bug
|
||||||
|
- SM83: Fix flags on little endian PowerPC
|
||||||
Other fixes:
|
Other fixes:
|
||||||
- All: Improve export headers (fixes mgba.io/i/1738)
|
- All: Improve export headers (fixes mgba.io/i/1738)
|
||||||
- All: Correct format strings for some numbers on Windows (fixes mgba.io/i/1794)
|
- All: Correct format strings for some numbers on Windows (fixes mgba.io/i/1794)
|
||||||
|
|
|
@ -18,7 +18,7 @@ struct SM83Core;
|
||||||
#pragma pack(push, 1)
|
#pragma pack(push, 1)
|
||||||
union FlagRegister {
|
union FlagRegister {
|
||||||
struct {
|
struct {
|
||||||
#if defined(__POWERPC__) || defined(__PPC__)
|
#ifdef __BIG_ENDIAN__
|
||||||
unsigned z : 1;
|
unsigned z : 1;
|
||||||
unsigned n : 1;
|
unsigned n : 1;
|
||||||
unsigned h : 1;
|
unsigned h : 1;
|
||||||
|
|
Loading…
Reference in New Issue