GB IO: Pass more video registers to the video renderer
Jeffrey Pfau jeffrey@endrift.com
Tue, 19 Jan 2016 22:08:46 -0800
1 files changed,
10 insertions(+),
0 deletions(-)
jump to
M
src/gb/io.c
→
src/gb/io.c
@@ -56,7 +56,17 @@ GBUpdateIRQs(gb);
return; case REG_LCDC: // TODO: handle GBC differences + value = gb->video.renderer->writeVideoRegister(gb->video.renderer, address, value); GBVideoWriteLCDC(&gb->video, value); + break; + case REG_SCY: + case REG_SCX: + case REG_WY: + case REG_WX: + case REG_BGP: + case REG_OBP0: + case REG_OBP1: + value = gb->video.renderer->writeVideoRegister(gb->video.renderer, address, value); break; case REG_STAT: GBVideoWriteSTAT(&gb->video, value);