blob: 831d70ffb18b3dd8a60d1918ce7a2223fa23b943 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
// license:LGPL-2.1+
// copyright-holders:Michael Zapf
/****************************************************************************
Single cartridge connector.
*****************************************************************************/
#ifndef MAME_BUS_TI99_GROMPORT_SINGLECONN_H
#define MAME_BUS_TI99_GROMPORT_SINGLECONN_H
#pragma once
#include "bus/ti99/ti99defs.h"
#include "cartridges.h"
namespace bus { namespace ti99 { namespace gromport {
class ti99_single_cart_conn_device : public cartridge_connector_device
{
public:
ti99_single_cart_conn_device(const machine_config &mconfig, const char *tag, device_t *owner, uint32_t clock);
DECLARE_READ8Z_MEMBER(readz) override;
void write(offs_t offset, uint8_t data) override;
DECLARE_READ8Z_MEMBER(crureadz) override;
void cruwrite(offs_t offset, uint8_t data) override;
DECLARE_WRITE_LINE_MEMBER(romgq_line) override;
void set_gromlines(line_state mline, line_state moline, line_state gsq) override;
DECLARE_WRITE_LINE_MEMBER(gclock_in) override;
bool is_grom_idle() override;
protected:
virtual void device_start() override;
virtual void device_reset() override;
virtual void device_add_mconfig(machine_config &config) override;
private:
ti99_cartridge_device *m_cartridge;
};
} } } // end namespace bus::ti99::gromport
DECLARE_DEVICE_TYPE_NS(TI99_GROMPORT_SINGLE, bus::ti99::gromport, ti99_single_cart_conn_device)
#endif // MAME_BUS_TI99_GROMPORT_SINGLECONN_H
|