blob: f1241c001ad302c01948ea3d0c97383f3aad650e (
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
// license:LGPL-2.1+
// copyright-holders:Michael Zapf
/****************************************************************************
Horizon Ramdisk
See horizon.c for documentation
Michael Zapf
February 2012
*****************************************************************************/
#ifndef __HORIZON__
#define __HORIZON__
#include "emu.h"
#include "peribox.h"
extern const device_type TI99_HORIZON;
class horizon_ramdisk_device : public ti_expansion_card_device, public device_nvram_interface
{
public:
horizon_ramdisk_device(const machine_config &mconfig, const char *tag, device_t *owner, UINT32 clock);
DECLARE_READ8Z_MEMBER(readz);
DECLARE_WRITE8_MEMBER(write);
DECLARE_READ8Z_MEMBER(crureadz);
DECLARE_WRITE8_MEMBER(cruwrite);
DECLARE_INPUT_CHANGED_MEMBER( ks_changed );
protected:
virtual void device_start();
virtual void device_reset();
virtual const rom_entry *device_rom_region() const;
virtual ioport_constructor device_input_ports() const;
void nvram_default();
void nvram_read(emu_file &file);
void nvram_write(emu_file &file);
private:
void setbit(int& page, int pattern, bool set);
int get_size();
UINT8* m_ram;
UINT8* m_nvram;
UINT8* m_ros;
int m_select6_value;
int m_select_all;
int m_page;
int m_cru_horizon;
int m_cru_phoenix;
bool m_timode;
bool m_32k_installed;
bool m_split_mode;
bool m_rambo_mode;
bool m_killswitch;
bool m_use_rambo;
};
#endif
|