# HG changeset patch # User Mike Pavone # Date 1368682624 25200 # Node ID f8c6f8684cd6751458db1162a41ae499781af65e # Parent 87b65e5ce1ab8e61f3c0314a4d9d0483c2e1d2c7 Fix background color regsiter number diff -r 87b65e5ce1ab -r f8c6f8684cd6 vdp.c --- a/vdp.c Tue May 14 22:52:15 2013 -0700 +++ b/vdp.c Wed May 15 22:37:04 2013 -0700 @@ -316,6 +316,7 @@ break; case CRAM_WRITE: context->cram[(context->address/2) & (CRAM_SIZE-1)] = context->dma_val; + //printf("CRAM DMA Fill | %X set to %X at %d\n", (context->address/2) & (CRAM_SIZE-1), context->cram[(context->address/2) & (CRAM_SIZE-1)], context->cycles); break; case VSRAM_WRITE: if (((context->address/2) & 63) < VSRAM_SIZE) { @@ -334,6 +335,7 @@ break; case CRAM_WRITE: context->cram[(context->address/2) & (CRAM_SIZE-1)] = context->dma_val; + //printf("CRAM DMA Copy | %X set to %X from %X at %d\n", (context->address/2) & (CRAM_SIZE-1), context->cram[(context->address/2) & (CRAM_SIZE-1)], context->regs[REG_DMASRC_L] & (CRAM_SIZE-1), context->cycles); break; case VSRAM_WRITE: if (((context->address/2) & 63) < VSRAM_SIZE) { diff -r 87b65e5ce1ab -r f8c6f8684cd6 vdp.h --- a/vdp.h Tue May 14 22:52:15 2013 -0700 +++ b/vdp.h Wed May 15 22:37:04 2013 -0700 @@ -51,7 +51,7 @@ REG_WINDOW, REG_SCROLL_B, REG_SAT, - REG_BG_COLOR, + REG_BG_COLOR=7, REG_HINT=0xA, REG_MODE_3, REG_MODE_4,