From 3e9473a73d17bb3b71551c8eb053e8288eceb713 Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Wed, 15 May 2013 22:37:04 -0700 Subject: Fix background color regsiter number --- vdp.c | 2 ++ vdp.h | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/vdp.c b/vdp.c index a0bfdb3..af6826c 100644 --- a/vdp.c +++ b/vdp.c @@ -316,6 +316,7 @@ void external_slot(vdp_context * context) 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 @@ void external_slot(vdp_context * context) 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 --git a/vdp.h b/vdp.h index a5aa6ab..1465a94 100644 --- a/vdp.h +++ b/vdp.h @@ -51,7 +51,7 @@ enum { REG_WINDOW, REG_SCROLL_B, REG_SAT, - REG_BG_COLOR, + REG_BG_COLOR=7, REG_HINT=0xA, REG_MODE_3, REG_MODE_4, -- cgit v1.2.3