comparison genesis.c @ 2327:9dd27530c570

Fix Z80 access to VDP debug register
author Michael Pavone <pavone@retrodev.com>
date Sun, 06 Aug 2023 20:00:33 -0700
parents 0343f0d5add0
children c05b7c5e6f11
comparison
equal deleted inserted replaced
2326:e734bfae80c7 2327:9dd27530c570
749 } 749 }
750 } else if (vdp_port < 0x18) { 750 } else if (vdp_port < 0x18) {
751 sync_sound(gen, context->Z80_CYCLE); 751 sync_sound(gen, context->Z80_CYCLE);
752 psg_write(gen->psg, value); 752 psg_write(gen->psg, value);
753 } else { 753 } else {
754 vdp_test_port_write(gen->vdp, value); 754 vdp_test_port_write(gen->vdp, value << 8 | value);
755 } 755 }
756 return context; 756 return context;
757 } 757 }
758 758
759 static uint16_t vdp_port_read(uint32_t vdp_port, m68k_context * context) 759 static uint16_t vdp_port_read(uint32_t vdp_port, m68k_context * context)