summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2014-06-17 19:01:01 -0700
committerMichael Pavone <pavone@retrodev.com>2014-06-17 19:01:01 -0700
commit6cd595a305c71f0540a3ecf4c4038891a7eba762 (patch)
tree6e55ba1c85305e68e67be08ec03745c700b1e68a /vdp.h
parent8668ed398f50601c805f7e9fb629dec93e5a45f4 (diff)
Partially working switch to having a vcounter and hslot counter in the context rather than trying to derive them from the cycle count. This should allow for more accurate handling of mid screen mode switches. Interrupt timing is broken currently though
Diffstat (limited to 'vdp.h')
-rw-r--r--vdp.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/vdp.h b/vdp.h
index 830aa5a..2fa8f36 100644
--- a/vdp.h
+++ b/vdp.h
@@ -142,9 +142,11 @@ 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];
- uint8_t latched_mode;
+ uint16_t vcounter;
+ uint16_t hslot; //hcounter/2
uint16_t hscroll_a;
uint16_t hscroll_b;
+ uint8_t latched_mode;
uint8_t sprite_index;
uint8_t sprite_draws;
int8_t slot_counter;