mirror of https://github.com/mgba-emu/mgba.git
GB Video: Attempt to reproduce STAT bug
This commit is contained in:
parent
53e70a5460
commit
1f137b06ac
|
@ -271,6 +271,10 @@ void GBVideoWriteLCDC(struct GBVideo* video, GBRegisterLCDC value) {
|
|||
|
||||
void GBVideoWriteSTAT(struct GBVideo* video, GBRegisterSTAT value) {
|
||||
video->stat = (video->stat & 0x7) | (value & 0x78);
|
||||
if (video->p->model == GB_MODEL_DMG && video->mode == 1) {
|
||||
video->p->memory.io[REG_IF] |= (1 << GB_IRQ_LCDSTAT);
|
||||
GBUpdateIRQs(video->p);
|
||||
}
|
||||
}
|
||||
|
||||
void GBVideoWritePalette(struct GBVideo* video, uint16_t address, uint8_t value) {
|
||||
|
|
Loading…
Reference in New Issue