diff jaguar.h @ 1090:a68274a25e2f

Initial stab at implementing the Jaguar object processor
author Michael Pavone <pavone@retrodev.com>
date Sun, 16 Oct 2016 18:25:18 -0700
parents 6433d4d05934
children faa3a4617f62
line wrap: on
line diff
--- a/jaguar.h	Wed Oct 12 09:39:52 2016 -0700
+++ b/jaguar.h	Sun Oct 16 18:25:18 2016 -0700
@@ -6,7 +6,7 @@
 #define DSP_RAM_BYTES 8192
 
 #include "jag_video.h"
-
+typedef struct m68k_context m68k_context;
 typedef struct {
 	m68k_context *m68k;
 	jag_video    *video;
@@ -16,6 +16,7 @@
 	uint32_t     cart_size;
 	uint32_t     memcon1;
 	uint32_t     memcon2;
+	uint32_t     rom_cycles;
 	uint16_t     write_latch;
 	uint8_t      write_pending;
 	
@@ -26,5 +27,8 @@
 	uint8_t      memcon_written;
 } jaguar_context;
 
+uint64_t jag_read_phrase(jaguar_context *system, uint32_t address, uint32_t *cycles);
+uint32_t jag_write_phrase(jaguar_context *system, uint32_t address, uint64_t value);
+
 
 #endif //JAGUAR_H_