From 16485197368e89bce59b908bec10fdb3fb1d0d0c Mon Sep 17 00:00:00 2001 From: Mike Pavone Date: Thu, 16 Apr 2020 22:37:43 -0700 Subject: Admit defeat on the "trying to write CRAM dots while output is null issue" for now and just add a null check --- vdp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vdp.c') diff --git a/vdp.c b/vdp.c index d3798f1..9950621 100644 --- a/vdp.c +++ b/vdp.c @@ -814,7 +814,7 @@ static void write_cram(vdp_context * context, uint16_t address, uint16_t value) } write_cram_internal(context, addr, value); - if (context->hslot >= BG_START_SLOT && ( + if (context->output && context->hslot >= BG_START_SLOT && ( context->vcounter < context->inactive_start + context->border_bot || context->vcounter > 0x200 - context->border_top )) { -- cgit v1.2.3