summaryrefslogtreecommitdiff
path: root/vdp.h
diff options
context:
space:
mode:
Diffstat (limited to 'vdp.h')
-rw-r--r--vdp.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/vdp.h b/vdp.h
index 4cb61e2..75a603d 100644
--- a/vdp.h
+++ b/vdp.h
@@ -110,6 +110,8 @@ typedef struct {
int16_t y;
} sprite_info;
+#define FIFO_SIZE 4
+
typedef struct {
uint32_t cycle;
uint16_t address;
@@ -119,8 +121,9 @@ typedef struct {
} fifo_entry;
typedef struct {
- fifo_entry *fifo_cur;
- fifo_entry *fifo_end;
+ fifo_entry fifo[FIFO_SIZE];
+ int32_t fifo_write;
+ int32_t fifo_read;
uint16_t address;
uint8_t cd;
uint8_t flags;