summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vdp.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/vdp.c b/vdp.c
index 5a90e8b..fbda8f8 100644
--- a/vdp.c
+++ b/vdp.c
@@ -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)