summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-05-16 23:04:57 -0700
committerMichael Pavone <pavone@retrodev.com>2015-05-16 23:04:57 -0700
commit7e2fdcb2f3378827b1286e8d7ee5290303e71d6b (patch)
treefadfddd2b45590a2bfc77a4905e827df947bb98a /vdp.h
parentb31d70dcda706dbf8a3a34ea27ff614617c1c9c1 (diff)
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
Diffstat (limited to 'vdp.h')
-rw-r--r--vdp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/vdp.h b/vdp.h
index 31bd4e7..7950c38 100644
--- a/vdp.h
+++ b/vdp.h
@@ -143,6 +143,7 @@ typedef struct {
uint32_t colors[CRAM_SIZE*3];
uint32_t debugcolors[1 << (3 + 1 + 1 + 1)];//3 bits for source, 1 bit for priority, 1 bit for shadow, 1 bit for hilight
uint16_t vsram[VSRAM_SIZE];
+ uint16_t vscroll_latch[2];
uint32_t frame;
uint16_t vcounter;
uint16_t hslot; //hcounter/2