diff options
author | Oxore <oxore@protonmail.com> | 2024-12-08 17:31:12 +0300 |
---|---|---|
committer | Oxore <oxore@protonmail.com> | 2024-12-08 17:34:13 +0300 |
commit | 4f8621eede521fe6b11794975af80e39b8c6a8a0 (patch) | |
tree | c5c185d2642fce0519585281e5d6e902d98a48a2 /vdp.c | |
parent | d5f54ef2464e3bc8021b92c9ba8bdc28390566c1 (diff) |
Add CRAM tracing expression
Diffstat (limited to 'vdp.c')
-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) |