blob: d215ef9a3341bdf5a45e092b6e9010ce5e3388da (
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
48
|
// license:BSD-3-Clause
// copyright-holders:Olivier Galibert
#ifndef MAME_BUS_ORICEXT_JASMIN_H
#define MAME_BUS_ORICEXT_JASMIN_H
#pragma once
#include "oricext.h"
#include "imagedev/floppy.h"
#include "machine/74259.h"
#include "machine/wd_fdc.h"
DECLARE_DEVICE_TYPE(ORIC_JASMIN, oric_jasmin_device)
class oric_jasmin_device : public device_t, public device_oricext_interface
{
public:
oric_jasmin_device(const machine_config &mconfig, const char *tag, device_t *owner, const XTAL &clock);
virtual ~oric_jasmin_device();
DECLARE_INPUT_CHANGED_MEMBER(boot_pressed);
protected:
virtual void device_start() override;
const tiny_rom_entry *device_rom_region() const override;
virtual void device_add_mconfig(machine_config &config) override;
virtual ioport_constructor device_input_ports() const override;
private:
void remap();
DECLARE_WRITE_LINE_MEMBER(side_sel_w);
DECLARE_WRITE_LINE_MEMBER(ram_access_w);
DECLARE_WRITE_LINE_MEMBER(rom_access_w);
DECLARE_WRITE_LINE_MEMBER(select_w);
void map(address_map &map);
static void floppy_formats(format_registration &fr);
required_device<wd1770_device> m_fdc;
required_device<ls259_device> m_fdlatch;
required_device_array<floppy_connector, 4> m_floppies;
required_region_ptr<uint8_t> m_jasmin_rom;
floppy_image_device *m_cur_floppy;
};
#endif // MAME_BUS_ORICEXT_JASMIN_H
|