blob: 141a08e00e7d1ca94b3b75facba865f9bff60923 (
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
45
46
47
|
// license:BSD-3-Clause
// copyright-holders:Fabio Priuli
#ifndef __VCS_SCHARGER_H
#define __VCS_SCHARGER_H
#include "rom.h"
#include "imagedev/cassette.h"
//**************************************************************************
// TYPE DEFINITIONS
//**************************************************************************
// ======================> a26_rom_ss_device
class a26_rom_ss_device : public a26_rom_f6_device
{
public:
// construction/destruction
a26_rom_ss_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
// device-level overrides
virtual void device_start() override;
virtual machine_config_constructor device_mconfig_additions() const override;
virtual void device_reset() override;
required_device<cassette_image_device> m_cassette;
// reading and writing
virtual DECLARE_READ8_MEMBER(read_rom) override;
private:
cpu_device *m_maincpu;
inline UINT8 read_byte(UINT32 offset);
int m_base_banks[2];
UINT8 m_reg;
UINT8 m_write_delay, m_ram_write_enabled, m_rom_enabled;
UINT32 m_byte_started;
UINT16 m_last_address;
UINT32 m_diff_adjust;
};
// device type definition
extern const device_type A26_ROM_SUPERCHARGER;
#endif
|