summaryrefslogtreecommitdiffstats
path: root/src/mame/includes/sage2.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/sage2.h')
-rw-r--r--src/mame/includes/sage2.h79
1 files changed, 41 insertions, 38 deletions
diff --git a/src/mame/includes/sage2.h b/src/mame/includes/sage2.h
index 463255ff862..5542a6716ec 100644
--- a/src/mame/includes/sage2.h
+++ b/src/mame/includes/sage2.h
@@ -29,23 +29,48 @@ class sage2_state : public driver_device
{
public:
sage2_state(const machine_config &mconfig, device_type type, const char *tag)
- : driver_device(mconfig, type, tag),
- m_maincpu(*this, M68000_TAG),
- m_pic(*this, I8259_TAG),
- m_usart0(*this, I8251_0_TAG),
- m_usart1(*this, I8251_1_TAG),
- m_fdc(*this, UPD765_TAG),
- m_ram(*this, RAM_TAG),
- m_rom(*this, M68000_TAG),
- m_floppy0(*this, UPD765_TAG ":0"),
- m_floppy1(*this, UPD765_TAG ":1"),
- m_floppy(nullptr),
- m_centronics(*this, CENTRONICS_TAG),
- m_ieee488(*this, IEEE488_TAG),
- m_fdc_int(0),
- m_fdie(0)
+ : driver_device(mconfig, type, tag)
+ , m_maincpu(*this, M68000_TAG)
+ , m_pic(*this, I8259_TAG)
+ , m_usart0(*this, I8251_0_TAG)
+ , m_usart1(*this, I8251_1_TAG)
+ , m_fdc(*this, UPD765_TAG)
+ , m_ram(*this, RAM_TAG)
+ , m_rom(*this, M68000_TAG)
+ , m_floppy0(*this, UPD765_TAG ":0")
+ , m_floppy1(*this, UPD765_TAG ":1")
+ , m_floppy(nullptr)
+ , m_centronics(*this, CENTRONICS_TAG)
+ , m_ieee488(*this, IEEE488_TAG)
+ , m_fdc_int(0)
+ , m_fdie(0)
+ , m_led(*this, "led0")
{ }
+ void update_fdc_int();
+
+ DECLARE_READ16_MEMBER(rom_r);
+ DECLARE_WRITE_LINE_MEMBER( br1_w );
+ DECLARE_WRITE_LINE_MEMBER( br2_w );
+ DECLARE_WRITE8_MEMBER( ppi0_pc_w );
+ DECLARE_READ8_MEMBER( ppi1_pb_r );
+ DECLARE_WRITE8_MEMBER( ppi1_pc_w );
+
+ DECLARE_WRITE_LINE_MEMBER( fdc_irq );
+
+ DECLARE_WRITE_LINE_MEMBER(write_centronics_ack);
+ DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
+ DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
+ DECLARE_WRITE_LINE_MEMBER(write_centronics_select);
+ DECLARE_WRITE_LINE_MEMBER(write_centronics_fault);
+ void sage2(machine_config &config);
+ void sage2_mem(address_map &map);
+ void init_sage2();
+
+protected:
+ virtual void machine_start() override;
+ virtual void machine_reset() override;
+
required_device<cpu_device> m_maincpu;
required_device<pic8259_device> m_pic;
required_device<i8251_device> m_usart0;
@@ -59,35 +84,13 @@ public:
required_device<centronics_device> m_centronics;
required_device<ieee488_device> m_ieee488;
- virtual void machine_start() override;
- virtual void machine_reset() override;
-
- void update_fdc_int();
-
- DECLARE_READ16_MEMBER(rom_r);
- DECLARE_WRITE_LINE_MEMBER( br1_w );
- DECLARE_WRITE_LINE_MEMBER( br2_w );
- DECLARE_WRITE8_MEMBER( ppi0_pc_w );
- DECLARE_READ8_MEMBER( ppi1_pb_r );
- DECLARE_WRITE8_MEMBER( ppi1_pc_w );
-
- DECLARE_WRITE_LINE_MEMBER( fdc_irq );
-
// floppy state
int m_fdc_int;
int m_fdie;
- void init_sage2();
int m_centronics_busy;
int m_centronics_perror;
int m_centronics_select;
int m_centronics_fault;
-
- DECLARE_WRITE_LINE_MEMBER(write_centronics_ack);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_busy);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_perror);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_select);
- DECLARE_WRITE_LINE_MEMBER(write_centronics_fault);
- void sage2(machine_config &config);
- void sage2_mem(address_map &map);
+ output_finder<> m_led;
};