diff vdp.h @ 697:7f96bd1cb1be

Sync fixes and logging to fix more sync issues
author Michael Pavone <pavone@retrodev.com>
date Mon, 11 May 2015 00:28:47 -0700
parents 4996369f1463
children 4cd8823f79e3
line wrap: on
line diff
--- a/vdp.h	Tue May 05 08:42:27 2015 -0700
+++ b/vdp.h	Mon May 11 00:28:47 2015 -0700
@@ -143,6 +143,7 @@
 	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_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];