summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/video/tia.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/video/tia.h')
-rw-r--r--src/mame/video/tia.h26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/mame/video/tia.h b/src/mame/video/tia.h
new file mode 100644
index 00000000000..9408bf987ca
--- /dev/null
+++ b/src/mame/video/tia.h
@@ -0,0 +1,26 @@
+#ifndef _VIDEO_TIA_H_
+#define _VIDEO_TIA_H_
+
+#define TIA_PALETTE_LENGTH 128 + 128 * 128
+#define TIA_INPUT_PORT_ALWAYS_ON 0
+#define TIA_INPUT_PORT_ALWAYS_OFF 0xffff
+#define TIA_MAX_SCREEN_HEIGHT 342
+
+struct tia_interface {
+ read16_handler read_input_port;
+ read8_handler databus_contents;
+ write16_handler vsync_callback;
+};
+
+PALETTE_INIT( tia_NTSC );
+PALETTE_INIT( tia_PAL );
+
+VIDEO_START( tia );
+VIDEO_UPDATE( tia );
+
+READ8_HANDLER( tia_r );
+WRITE8_HANDLER( tia_w );
+
+void tia_init(const struct tia_interface* ti);
+
+#endif /* _VIDEO_TIA_H_ */