all repos — mgba @ dabc92bf5feefc988393431e38ec6cb6c7df1f45

mGBA Game Boy Advance Emulator

GB IO: Pass more video registers to the video renderer
Jeffrey Pfau jeffrey@endrift.com
Tue, 19 Jan 2016 22:08:46 -0800
commit

dabc92bf5feefc988393431e38ec6cb6c7df1f45

parent

e4a17e12f40d2778bb91998ecf93ad5ae39594e3

1 files changed, 10 insertions(+), 0 deletions(-)

jump to
M src/gb/io.csrc/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);