From defa6952f85bf151d6dc30cd1f17708f4aaf3807 Mon Sep 17 00:00:00 2001 From: mightymax Date: Wed, 10 Jan 2007 21:06:09 +0000 Subject: [PATCH] added 8bit writes to window dimesnion components --- desmume/src/MMU.c | 48 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/desmume/src/MMU.c b/desmume/src/MMU.c index 0d87791ff..05f72244b 100644 --- a/desmume/src/MMU.c +++ b/desmume/src/MMU.c @@ -755,6 +755,54 @@ void FASTCALL MMU_write8(u32 proc, u32 adr, u8 val) } } break; + case REG_DISPA_WIN0H: + GPU_setWINDOW_XDIM_Component(MainScreen.gpu,val,0) ; + break ; + case REG_DISPA_WIN0H+1: + GPU_setWINDOW_XDIM_Component(MainScreen.gpu,val,1) ; + break ; + case REG_DISPA_WIN1H: + GPU_setWINDOW_XDIM_Component(MainScreen.gpu,val,2) ; + break ; + case REG_DISPA_WIN1H+1: + GPU_setWINDOW_XDIM_Component(MainScreen.gpu,val,3) ; + break ; + case REG_DISPB_WIN0H: + GPU_setWINDOW_XDIM_Component(SubScreen.gpu,val,0) ; + break ; + case REG_DISPB_WIN0H+1: + GPU_setWINDOW_XDIM_Component(SubScreen.gpu,val,1) ; + break ; + case REG_DISPB_WIN1H: + GPU_setWINDOW_XDIM_Component(SubScreen.gpu,val,2) ; + break ; + case REG_DISPB_WIN1H+1: + GPU_setWINDOW_XDIM_Component(SubScreen.gpu,val,3) ; + break ; + case REG_DISPA_WIN0V: + GPU_setWINDOW_YDIM_Component(MainScreen.gpu,val,0) ; + break ; + case REG_DISPA_WIN0V+1: + GPU_setWINDOW_YDIM_Component(MainScreen.gpu,val,1) ; + break ; + case REG_DISPA_WIN1V: + GPU_setWINDOW_YDIM_Component(MainScreen.gpu,val,2) ; + break ; + case REG_DISPA_WIN1V+1: + GPU_setWINDOW_YDIM_Component(MainScreen.gpu,val,3) ; + break ; + case REG_DISPB_WIN0V: + GPU_setWINDOW_YDIM_Component(SubScreen.gpu,val,0) ; + break ; + case REG_DISPB_WIN0V+1: + GPU_setWINDOW_YDIM_Component(SubScreen.gpu,val,1) ; + break ; + case REG_DISPB_WIN1V: + GPU_setWINDOW_YDIM_Component(SubScreen.gpu,val,2) ; + break ; + case REG_DISPB_WIN1V+1: + GPU_setWINDOW_YDIM_Component(SubScreen.gpu,val,3) ; + break ; #ifdef LOG_CARD case 0x040001A0 : /* TODO (clear): ??? */ case 0x040001A1 :