summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/ssystem3.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/ssystem3.h')
-rw-r--r--src/mame/includes/ssystem3.h91
1 files changed, 0 insertions, 91 deletions
diff --git a/src/mame/includes/ssystem3.h b/src/mame/includes/ssystem3.h
deleted file mode 100644
index ec019285145..00000000000
--- a/src/mame/includes/ssystem3.h
+++ /dev/null
@@ -1,91 +0,0 @@
-// license:GPL-2.0+
-// copyright-holders:Peter Trauner
-/*****************************************************************************
- *
- * includes/ssystem3.h
- *
- ****************************************************************************/
-
-#ifndef MAME_INCLUDES_SSYSTEM3_H
-#define MAME_INCLUDES_SSYSTEM3_H
-
-#include "cpu/m6502/m6502.h"
-#include "machine/6522via.h"
-#include "emupal.h"
-
-
-struct playfield_t
-{
- int signal;
- // int on;
-
- int count, bit, started;
- uint8_t data;
- attotime time, high_time, low_time;
- union {
- struct {
- uint8_t header[7];
- uint8_t field[8][8/2];
- uint8_t unknown[5];
- } s;
- uint8_t data[7+8*8/2+5];
- } u;
-};
-
-struct lcd_t
-{
- uint8_t data[5];
- int clock;
- int count;
-};
-
-
-class ssystem3_state : public driver_device
-{
-public:
- ssystem3_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag)
- , m_maincpu(*this, "maincpu")
- , m_palette(*this, "palette")
- , m_via6522_0(*this, "via6522_0")
- , m_configuration(*this, "Configuration")
- , m_matrix(*this, "matrix.%u", 0)
- { }
-
- void ssystem3(machine_config &config);
-
- void init_ssystem3();
-
-private:
- virtual void video_start() override;
- void palette_init(palette_device &palette);
- uint32_t screen_update_ssystem3(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
- DECLARE_WRITE8_MEMBER(ssystem3_via_write_a);
- DECLARE_READ8_MEMBER(ssystem3_via_read_a);
- DECLARE_READ8_MEMBER(ssystem3_via_read_b);
- DECLARE_WRITE8_MEMBER(ssystem3_via_write_b);
- void ssystem3_lcd_reset();
- void ssystem3_lcd_write(int clock, int data);
- void ssystem3_draw_7segment(bitmap_ind16 &bitmap,int value, int x, int y);
- void ssystem3_draw_led(bitmap_ind16 &bitmap,int16_t color, int x, int y, int ch);
- void ssystem3_playfield_getfigure(int x, int y, int *figure, int *black);
- void ssystem3_playfield_reset();
- void ssystem3_playfield_write(int reset, int signal);
- void ssystem3_playfield_read(int *on, int *ready);
-
- void ssystem3_map(address_map &map);
-
- uint8_t m_porta;
- std::unique_ptr<uint8_t[]> m_videoram;
- playfield_t m_playfield;
- lcd_t m_lcd;
-
- required_device<m6502_device> m_maincpu;
- required_device<palette_device> m_palette;
- required_device<via6522_device> m_via6522_0;
- required_ioport m_configuration;
- required_ioport_array<4> m_matrix;
-};
-
-
-#endif // MAME_INCLUDES_SSYSTEM3_H