comparison vdp.h @ 710:4cd8823f79e3

First pass at emulating a vscroll latch. Titan's Overdrive demo seems to depend on the scroll value being latched early in the line before the HINT gets a chance to change it
author Michael Pavone <pavone@retrodev.com>
date Sat, 16 May 2015 23:04:57 -0700
parents 7f96bd1cb1be
children 22dbdf50d33c
comparison
equal deleted inserted replaced
709:3f065c20423c 710:4cd8823f79e3
141 void *evenbuf; 141 void *evenbuf;
142 uint16_t cram[CRAM_SIZE]; 142 uint16_t cram[CRAM_SIZE];
143 uint32_t colors[CRAM_SIZE*3]; 143 uint32_t colors[CRAM_SIZE*3];
144 uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight 144 uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight
145 uint16_t vsram[VSRAM_SIZE]; 145 uint16_t vsram[VSRAM_SIZE];
146 uint16_t vscroll_latch[2];
146 uint32_t frame; 147 uint32_t frame;
147 uint16_t vcounter; 148 uint16_t vcounter;
148 uint16_t hslot; //hcounter/2 149 uint16_t hslot; //hcounter/2
149 uint16_t hscroll_a; 150 uint16_t hscroll_a;
150 uint16_t hscroll_b; 151 uint16_t hscroll_b;