So I recently worked on emulating the GBVideoPlayer.
Source: https://github.com/LIJI32/GBVideoPlayer
Result: https://twitter.com/byuu_san/status/686436982407315456
Aside from obviously needing a pixel-based renderer (already had one), the trick seemed to be that it was expecting 145 Hblank IRQs to fire. And if you were one short, it'd fetch bad control bytes and go completely haywire, displaying nothing but gibberish.
Obviously, lines 0-143 trigger Hblank. But upon adding another to line 153, on the theory of it being a way to set up special effects for the first scanline, the video began to work correctly.
But it kind of bothers me that gambatte doesn't emulate this ROM. The gibberish in it is identical to what I get without the extra Hblank at line 153. However, the video ROM has been shown running on a real GBC, so obviously it's an emulation issue.
So, does anyone know anything about this? Can anyone confirm the existence of an extra Hblank IRQ?
Source: https://github.com/LIJI32/GBVideoPlayer
Result: https://twitter.com/byuu_san/status/686436982407315456
Aside from obviously needing a pixel-based renderer (already had one), the trick seemed to be that it was expecting 145 Hblank IRQs to fire. And if you were one short, it'd fetch bad control bytes and go completely haywire, displaying nothing but gibberish.
Obviously, lines 0-143 trigger Hblank. But upon adding another to line 153, on the theory of it being a way to set up special effects for the first scanline, the video began to work correctly.
But it kind of bothers me that gambatte doesn't emulate this ROM. The gibberish in it is identical to what I get without the extra Hblank at line 153. However, the video ROM has been shown running on a real GBC, so obviously it's an emulation issue.
So, does anyone know anything about this? Can anyone confirm the existence of an extra Hblank IRQ?