summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
authorMike Pavone <pavone@retrodev.com>2012-12-31 11:26:57 -0800
committerMike Pavone <pavone@retrodev.com>2012-12-31 11:26:57 -0800
commit418dd74e406d2cd3134e5ecb175d4ae8b46e70e1 (patch)
tree5a9f3b06b73a8fb431707226be2853f557966709 /vdp.h
parent8dc3c22d3d0a2f34cd6321365761df66e32847f3 (diff)
Fix VDP reads
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 8a91b79..b3d5e17 100644
--- a/vdp.h
+++ b/vdp.h
@@ -77,7 +77,9 @@ typedef struct {
typedef struct {
uint32_t cycle;
+ uint16_t address;
uint16_t value;
+ uint8_t cd;
uint8_t partial;
} fifo_entry;
@@ -87,6 +89,7 @@ typedef struct {
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 @@ typedef struct {
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;