summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/includes/phc25.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/mame/includes/phc25.h')
-rw-r--r--src/mame/includes/phc25.h23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/mame/includes/phc25.h b/src/mame/includes/phc25.h
index 360520185ee..e74b781102a 100644
--- a/src/mame/includes/phc25.h
+++ b/src/mame/includes/phc25.h
@@ -27,13 +27,20 @@ class phc25_state : public driver_device
public:
phc25_state(const machine_config &mconfig, device_type type, const char *tag)
: driver_device(mconfig, type, tag)
- , m_video_ram(*this, "video_ram")
+ , m_vram(*this, "videoram")
, m_maincpu(*this, Z80_TAG)
, m_vdg(*this, MC6847_TAG)
, m_centronics(*this, CENTRONICS_TAG)
, m_cassette(*this, "cassette")
{ }
+ void phc25(machine_config &config);
+ void pal(machine_config &config);
+ void ntsc(machine_config &config);
+
+private:
+ void io_map(address_map &map);
+ void mem_map(address_map &map);
DECLARE_WRITE_LINE_MEMBER( write_centronics_busy );
uint8_t port40_r();
void port40_w(uint8_t data);
@@ -41,22 +48,16 @@ public:
uint8_t video_ram_r(offs_t offset);
MC6847_GET_CHARROM_MEMBER(ntsc_char_rom_r);
MC6847_GET_CHARROM_MEMBER(pal_char_rom_r);
-
- void phc25(machine_config &config);
- void pal(machine_config &config);
- void ntsc(machine_config &config);
- void phc25_io(address_map &map);
- void phc25_mem(address_map &map);
-private:
- virtual void video_start() override;
+ void machine_start() override;
+ void machine_reset() override;
uint8_t *m_char_rom;
uint8_t m_port40;
- required_shared_ptr<uint8_t> m_video_ram;
+ int m_centronics_busy;
+ required_shared_ptr<uint8_t> m_vram;
required_device<cpu_device> m_maincpu;
required_device<mc6847_base_device> m_vdg;
required_device<centronics_device> m_centronics;
required_device<cassette_image_device> m_cassette;
- int m_centronics_busy;
};
#endif