summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
authorMichael Pavone <pavone@retrodev.com>2015-05-11 00:28:47 -0700
committerMichael Pavone <pavone@retrodev.com>2015-05-11 00:28:47 -0700
commitb3e40bd29176e1c4cf53f8542628e48e1eb5dcb0 (patch)
treee1571120d6b1f62b29bbe4973d719c8c7ff25889 /vdp.h
parent89ca3bce585f06927569ed1f18ad433d33e320e9 (diff)
Sync fixes and logging to fix more sync issues
Diffstat (limited to 'vdp.h')
-rw-r--r--vdp.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/vdp.h b/vdp.h
index 70c0953..31bd4e7 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];
+ uint32_t frame;
uint16_t vcounter;
uint16_t hslot; //hcounter/2
uint16_t hscroll_a;
@@ -194,7 +195,7 @@ void vdp_print_sprite_table(vdp_context * context);
void vdp_print_reg_explain(vdp_context * context);
void latch_mode(vdp_context * context);
uint32_t vdp_cycles_to_frame_end(vdp_context * context);
-uint8_t vdp_is_frame_over(vdp_context * context);
+uint32_t vdp_frame_end_line(vdp_context *context);
extern int32_t color_map[1 << 12];