summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/poly88.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/poly88.h')
-rw-r--r--src/mame/includes/poly88.h45
1 files changed, 21 insertions, 24 deletions
diff --git a/src/mame/includes/poly88.h b/src/mame/includes/poly88.h
index 6619b3b9ca7..1cc3dbbacc0 100644
--- a/src/mame/includes/poly88.h
+++ b/src/mame/includes/poly88.h
@@ -14,6 +14,7 @@
#include "machine/mm5307.h"
#include "imagedev/cassette.h"
#include "imagedev/snapquik.h"
+#include "machine/timer.h"
class poly88_state : public driver_device
{
@@ -24,21 +25,21 @@ public:
TIMER_KEYBOARD
};
- poly88_state(const machine_config &mconfig, device_type type, const char *tag) :
- driver_device(mconfig, type, tag),
- m_video_ram(*this, "video_ram"),
- m_maincpu(*this, "maincpu"),
- m_usart(*this, "usart"),
- m_brg(*this, "brg"),
- m_cassette(*this, "cassette"),
- m_linec(*this, "LINEC"),
- m_line0(*this, "LINE0"),
- m_line1(*this, "LINE1"),
- m_line2(*this, "LINE2"),
- m_line3(*this, "LINE3"),
- m_line4(*this, "LINE4"),
- m_line5(*this, "LINE5"),
- m_line6(*this, "LINE6")
+ poly88_state(const machine_config &mconfig, device_type type, const char *tag)
+ : driver_device(mconfig, type, tag)
+ , m_video_ram(*this, "video_ram")
+ , m_maincpu(*this, "maincpu")
+ , m_usart(*this, "usart")
+ , m_brg(*this, "brg")
+ , m_cassette(*this, "cassette")
+ , m_linec(*this, "LINEC")
+ , m_line0(*this, "LINE0")
+ , m_line1(*this, "LINE1")
+ , m_line2(*this, "LINE2")
+ , m_line3(*this, "LINE3")
+ , m_line4(*this, "LINE4")
+ , m_line5(*this, "LINE5")
+ , m_line6(*this, "LINE6")
{ }
void poly88(machine_config &config);
@@ -49,25 +50,23 @@ public:
private:
required_shared_ptr<uint8_t> m_video_ram;
uint8_t *m_FNT;
- uint8_t m_intr;
uint8_t m_last_code;
uint8_t m_int_vector;
emu_timer * m_usart_timer;
emu_timer * m_keyboard_timer;
- int m_previous_level;
- int m_clk_level_tape;
void baud_rate_w(uint8_t data);
uint8_t keyboard_r();
void intr_w(uint8_t data);
+ bool m_dtr, m_rts, m_txd, m_rxd, m_cassold;
+ u8 m_cass_data[4];
virtual void machine_reset() override;
virtual void video_start() override;
uint32_t screen_update_poly88(screen_device &screen, bitmap_ind16 &bitmap, const rectangle &cliprect);
INTERRUPT_GEN_MEMBER(poly88_interrupt);
- TIMER_CALLBACK_MEMBER(poly88_usart_timer_callback);
TIMER_CALLBACK_MEMBER(keyboard_callback);
- DECLARE_WRITE_LINE_MEMBER(cassette_txc_rxc_w);
- DECLARE_WRITE_LINE_MEMBER(write_cas_tx);
- DECLARE_WRITE_LINE_MEMBER(poly88_usart_rxready);
+ TIMER_DEVICE_CALLBACK_MEMBER(kansas_r);
+ DECLARE_WRITE_LINE_MEMBER(cassette_clock_w);
+ DECLARE_WRITE_LINE_MEMBER(usart_ready_w);
IRQ_CALLBACK_MEMBER(poly88_irq_callback);
DECLARE_SNAPSHOT_LOAD_MEMBER(snapshot_cb);
@@ -90,8 +89,6 @@ private:
required_ioport m_line6;
uint8_t row_number(uint8_t code);
virtual void device_timer(emu_timer &timer, device_timer_id id, int param, void *ptr) override;
-
- int m_cas_tx;
};
#endif // MAME_INCLUDES_POLY88_H