diff --git a/NINTV-DS.nds b/NINTV-DS.nds index 3e8842e..18dce3e 100644 Binary files a/NINTV-DS.nds and b/NINTV-DS.nds differ diff --git a/arm9/source/ds_tools.cpp b/arm9/source/ds_tools.cpp index d8888b8..a44482b 100644 --- a/arm9/source/ds_tools.cpp +++ b/arm9/source/ds_tools.cpp @@ -1114,8 +1114,8 @@ ITCM_CODE void Run(char *initial_file) } -unsigned int customTiles[24*1024]; -unsigned short *customMap = (unsigned short *)0x068A0000; //16K of video memory +unsigned int *customTiles = (unsigned int *) 0x06860000; //128K of video memory +unsigned short *customMap = (unsigned short *)0x068A0000; //16K of video memory unsigned short customPal[512]; char line[256]; diff --git a/arm9/source/emucore/AY38900.ITCM.cpp b/arm9/source/emucore/AY38900.ITCM.cpp index f8655ab..618cbfe 100644 --- a/arm9/source/emucore/AY38900.ITCM.cpp +++ b/arm9/source/emucore/AY38900.ITCM.cpp @@ -853,36 +853,27 @@ ITCM_CODE void AY38900::copyBackgroundBufferToStagingArea() } else // This is the worst case... offsets! { - int sourceWidthX = blockLeft ? 152 : 160; - int sourceHeightY = blockTop ? 88 : 96; - int nextSourcePixel = (blockLeft ? (8 - horizontalOffset) : -horizontalOffset) + ((blockTop ? (8 - verticalOffset) : -verticalOffset) * 160); - - for (int y = 0; y