reset vblank flag at line 227

This commit is contained in:
Matthew Berry 2022-03-14 17:25:45 -07:00
parent a2af5771d7
commit 020aafd156

View file

@ -62,7 +62,7 @@ module GBA
@vcount = (@vcount + 1) % 228
@dispstat.vcounter = @vcount == @dispstat.vcount_setting
@gba.interrupts.reg_if.vcounter = true if @dispstat.vcounter_irq_enable && @dispstat.vcounter
if @vcount == 0
if @vcount == 227
@dispstat.vblank = false
elsif @vcount == 160
@dispstat.vblank = true