summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/esd16.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/esd16.h')
-rw-r--r--src/mame/includes/esd16.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/src/mame/includes/esd16.h b/src/mame/includes/esd16.h
new file mode 100644
index 00000000000..4f82eb70d4c
--- /dev/null
+++ b/src/mame/includes/esd16.h
@@ -0,0 +1,41 @@
+ /***************************************************************************
+
+ ESD 16 Bit Games
+
+***************************************************************************/
+
+typedef struct _esd16_state esd16_state;
+struct _esd16_state
+{
+ /* memory pointers */
+ UINT16 * vram_0;
+ UINT16 * vram_1;
+ UINT16 * scroll_0;
+ UINT16 * scroll_1;
+ UINT16 * spriteram16;
+ UINT16 * head_layersize;
+ UINT16 * headpanic_platform_x;
+ UINT16 * headpanic_platform_y;
+// UINT16 * paletteram16; // currently this uses generic palette handling
+
+ /* video-related */
+ tilemap *tilemap_0_16x16, *tilemap_1_16x16;
+ tilemap *tilemap_0, *tilemap_1;
+ int tilemap0_color;
+
+ /* devices */
+ const device_config *audio_cpu;
+ const device_config *eeprom;
+};
+
+
+/*----------- defined in video/esd16.c -----------*/
+
+WRITE16_HANDLER( esd16_vram_0_w );
+WRITE16_HANDLER( esd16_vram_1_w );
+WRITE16_HANDLER( esd16_tilemap0_color_w );
+
+VIDEO_START( esd16 );
+VIDEO_UPDATE( esd16 );
+VIDEO_UPDATE( hedpanic );
+VIDEO_UPDATE( hedpanio );