(nw)Stratos: marked as not working, small cleanup.

This commit is contained in:
Robbbert 2017-05-21 02:05:11 +10:00
parent 98fb80a8ca
commit 4e5146a016

View File

@ -15,25 +15,14 @@ class stratos_state : public driver_device
{ {
public: public:
stratos_state(const machine_config &mconfig, device_type type, const char *tag) stratos_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag), : driver_device(mconfig, type, tag)
maincpu(*this, "maincpu"), , maincpu(*this, "maincpu")
nvram(*this, "nvram"), , nvram(*this, "nvram")
bank_8000(*this, "bank_8000"), , bank_8000(*this, "bank_8000")
bank_4000(*this, "bank_4000"), , bank_4000(*this, "bank_4000")
nvram_bank(*this, "nvram_bank") , nvram_bank(*this, "nvram_bank")
{ } { }
required_device<m65c02_device> maincpu;
required_device<nvram_device> nvram;
required_memory_bank bank_8000;
required_memory_bank bank_4000;
required_memory_bank nvram_bank;
std::unique_ptr<uint8_t[]> nvram_data;
uint8_t control, led_latch_control;
uint32_t individual_leds;
uint8_t latch_AH_red, latch_AH_green, latch_18_red, latch_18_green;
DECLARE_DRIVER_INIT(stratos); DECLARE_DRIVER_INIT(stratos);
DECLARE_WRITE8_MEMBER(p2000_w); DECLARE_WRITE8_MEMBER(p2000_w);
DECLARE_READ8_MEMBER(p2200_r); DECLARE_READ8_MEMBER(p2200_r);
@ -45,10 +34,21 @@ public:
DECLARE_WRITE8_MEMBER(lcd_w); DECLARE_WRITE8_MEMBER(lcd_w);
TIMER_DEVICE_CALLBACK_MEMBER(irq_timer); TIMER_DEVICE_CALLBACK_MEMBER(irq_timer);
void show_leds();
uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect); uint32_t screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
private:
std::unique_ptr<uint8_t[]> nvram_data;
uint8_t control, led_latch_control;
uint32_t individual_leds;
uint8_t latch_AH_red, latch_AH_green, latch_18_red, latch_18_green;
void show_leds();
virtual void machine_reset() override; virtual void machine_reset() override;
required_device<m65c02_device> maincpu;
required_device<nvram_device> nvram;
required_memory_bank bank_8000;
required_memory_bank bank_4000;
required_memory_bank nvram_bank;
}; };
DRIVER_INIT_MEMBER( stratos_state, stratos ) DRIVER_INIT_MEMBER( stratos_state, stratos )
@ -368,4 +368,4 @@ ROM_START( stratos )
ROM_END ROM_END
/* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS */ /* YEAR NAME PARENT COMPAT MACHINE INPUT CLASS INIT COMPANY FULLNAME FLAGS */
CONS( 1986, stratos, 0, 0, stratos, stratos, stratos_state, stratos, "Saitek", "Kasparov Stratos Chess Computer", MACHINE_NO_SOUND) CONS( 1986, stratos, 0, 0, stratos, stratos, stratos_state, stratos, "Saitek", "Kasparov Stratos Chess Computer", MACHINE_NOT_WORKING | MACHINE_NO_SOUND)