diff vdp.h @ 138:aa3e1bb338c9

Fix VDP reads
author Mike Pavone <pavone@retrodev.com>
date Mon, 31 Dec 2012 11:26:57 -0800
parents 0e7e1ccc0a81
children 139e5dcd6aa3
line wrap: on
line diff
--- a/vdp.h	Sun Dec 30 22:39:41 2012 -0800
+++ b/vdp.h	Mon Dec 31 11:26:57 2012 -0800
@@ -77,7 +77,9 @@
 
 typedef struct {
 	uint32_t cycle;
+	uint16_t address;
 	uint16_t value;
+	uint8_t  cd;
 	uint8_t  partial;
 } fifo_entry;
 
@@ -87,6 +89,7 @@
 	uint16_t    address;
 	uint8_t     cd;
 	uint8_t	    flags;
+	uint8_t     regs[VDP_REGS];
 	//cycle count in MCLKs
 	uint32_t    cycles;
 	uint8_t     *vdpmem;
@@ -103,7 +106,6 @@
 	uint8_t     sprite_draws;
 	int8_t      slot_counter;
 	int8_t      cur_slot;
-	uint8_t     regs[VDP_REGS];
 	sprite_draw sprite_draw_list[MAX_DRAWS];
 	sprite_info sprite_info_list[MAX_SPRITES_LINE];
 	uint16_t    col_1;