mirror of https://github.com/mgba-emu/mgba.git
Merge branch 'master' into optimization/idle-loop-detection
This commit is contained in:
commit
e61acf6218
src/gba
|
@ -297,7 +297,7 @@ void GBAIOWrite(struct GBA* gba, uint32_t address, uint16_t value) {
|
||||||
case REG_DISPSTAT:
|
case REG_DISPSTAT:
|
||||||
value &= 0xFFF8;
|
value &= 0xFFF8;
|
||||||
GBAVideoWriteDISPSTAT(&gba->video, value);
|
GBAVideoWriteDISPSTAT(&gba->video, value);
|
||||||
break;
|
return;
|
||||||
|
|
||||||
// Audio
|
// Audio
|
||||||
case REG_SOUND1CNT_LO:
|
case REG_SOUND1CNT_LO:
|
||||||
|
|
|
@ -169,7 +169,7 @@ int32_t GBAVideoProcessEvents(struct GBAVideo* video, int32_t cycles) {
|
||||||
|
|
||||||
void GBAVideoWriteDISPSTAT(struct GBAVideo* video, uint16_t value) {
|
void GBAVideoWriteDISPSTAT(struct GBAVideo* video, uint16_t value) {
|
||||||
video->p->memory.io[REG_DISPSTAT >> 1] &= 0x7;
|
video->p->memory.io[REG_DISPSTAT >> 1] &= 0x7;
|
||||||
video->p->memory.io[REG_DISPSTAT >> 1] |= value & 0xFFF8;
|
video->p->memory.io[REG_DISPSTAT >> 1] |= value;
|
||||||
|
|
||||||
uint16_t dispstat = video->p->memory.io[REG_DISPSTAT >> 1];
|
uint16_t dispstat = video->p->memory.io[REG_DISPSTAT >> 1];
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue