diff options
-rw-r--r-- | vdp.c | 16 |
1 files changed, 16 insertions, 0 deletions
@@ -835,6 +835,22 @@ static void write_cram(vdp_context * context, uint16_t address, uint16_t value) context->output[(context->hslot - BG_START_SLOT)*2 + 1] = color; } } + if (0) { + printf("CRAM\n"); + for (size_t i = 0; i < CRAM_SIZE; i++) { + printf("%04x ", context->cram[i]); + if (i % 16u == 15u) { + printf("\n"); + } + } + for (size_t i = 0; i < CRAM_SIZE; i++) { + printf("%06x ", context->colors[i] & 0xffffff); + if (i % 8u == 7u) { + printf("\n"); + } + } + printf("\n"); + } } static void vdp_advance_dma(vdp_context * context) |