~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to mess/src/mess/includes/oric.h

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Jordi Mallach, Emmanuel Kasper
  • Date: 2011-12-19 22:56:27 UTC
  • mfrom: (0.1.2)
  • Revision ID: package-import@ubuntu.com-20111219225627-ub5oga1oys4ogqzm
Tags: 0.144-1
[ Jordi Mallach ]
* Fix syntax errors in DEP5 copyright file (lintian).
* Use a versioned copyright Format specification field.
* Update Vcs-* URLs.
* Move transitional packages to the new metapackages section, and make
  them priority extra.
* Remove references to GNU/Linux and MESS sources from copyright.
* Add build variables for s390x.
* Use .xz tarballs as it cuts 4MB for the upstream sources.
* Add nplayers.ini as a patch. Update copyright file to add CC-BY-SA-3.0.

[ Emmanuel Kasper ]
* New upstream release. Closes: #651538.
* Add Free Desktop compliant png icons of various sizes taken from
  the hydroxygen iconset
* Mess is now built from a new source package, to avoid possible source
  incompatibilities between mame and the mess overlay.
* Mame-tools are not built from the mame source package anymore, but
  from the mess source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*****************************************************************************
2
 
 *
3
 
 * includes/oric.h
4
 
 *
5
 
 ****************************************************************************/
6
 
 
7
 
#ifndef ORIC_H_
8
 
#define ORIC_H_
9
 
 
10
 
#include "machine/6522via.h"
11
 
#include "machine/wd17xx.h"
12
 
 
13
 
enum
14
 
{
15
 
        TELESTRAT_MEM_BLOCK_UNDEFINED,
16
 
        TELESTRAT_MEM_BLOCK_RAM,
17
 
        TELESTRAT_MEM_BLOCK_ROM
18
 
};
19
 
 
20
 
typedef struct
21
 
{
22
 
        int             MemType;
23
 
        unsigned char *ptr;
24
 
} telestrat_mem_block;
25
 
 
26
 
/* current state of the display */
27
 
/* some attributes persist until they are turned off.
28
 
This structure holds this persistant information */
29
 
typedef struct
30
 
{
31
 
        /* foreground and background colour used for rendering */
32
 
        /* if flash attribute is set, these two will both be equal
33
 
    to background colour */
34
 
        int active_foreground_colour;
35
 
        int active_background_colour;
36
 
        /* current foreground and background colour */
37
 
        int foreground_colour;
38
 
        int background_colour;
39
 
        int mode;
40
 
        /* text attributes */
41
 
        int text_attributes;
42
 
 
43
 
        unsigned long read_addr;
44
 
 
45
 
        /* current addr to fetch data */
46
 
        unsigned char *char_data;
47
 
        /* base of char data */
48
 
        unsigned char *char_base;
49
 
 
50
 
        /* if (1<<3), display graphics, if 0, hide graphics */
51
 
        int flash_state;
52
 
        /* current count */
53
 
        int flash_count;
54
 
} oric_vh_state;
55
 
 
56
 
 
57
 
class oric_state : public driver_device
58
 
{
59
 
public:
60
 
        oric_state(const machine_config &mconfig, device_type type, const char *tag)
61
 
                : driver_device(mconfig, type, tag) { }
62
 
 
63
 
        UINT8 *m_ram;
64
 
        int m_is_telestrat;
65
 
        unsigned char m_irqs;
66
 
        char *m_ram_0x0c000;
67
 
        int m_keyboard_line;
68
 
        char m_key_sense_bit;
69
 
        char m_keyboard_mask;
70
 
        unsigned char m_via_port_a_data;
71
 
        char m_psg_control;
72
 
        unsigned char m_previous_portb_data;
73
 
        unsigned char m_port_3fa_w;
74
 
        unsigned char m_port_3fb_w;
75
 
        unsigned char m_wd179x_int_state;
76
 
        unsigned char m_port_314_r;
77
 
        unsigned char m_port_318_r;
78
 
        unsigned char m_port_314_w;
79
 
        unsigned char m_telestrat_bank_selection;
80
 
        unsigned char m_telestrat_via2_port_a_data;
81
 
        unsigned char m_telestrat_via2_port_b_data;
82
 
        telestrat_mem_block m_telestrat_blocks[8];
83
 
        oric_vh_state m_vh_state;
84
 
};
85
 
 
86
 
 
87
 
/*----------- defined in machine/oric.c -----------*/
88
 
 
89
 
extern const via6522_interface oric_6522_interface;
90
 
extern const via6522_interface telestrat_via2_interface;
91
 
extern const wd17xx_interface oric_wd17xx_interface;
92
 
 
93
 
MACHINE_START( oric );
94
 
MACHINE_RESET( oric );
95
 
READ8_HANDLER( oric_IO_r );
96
 
WRITE8_HANDLER( oric_IO_w );
97
 
READ8_HANDLER( oric_microdisc_r );
98
 
WRITE8_HANDLER( oric_microdisc_w );
99
 
 
100
 
WRITE8_HANDLER(oric_psg_porta_write);
101
 
 
102
 
/* Telestrat specific */
103
 
MACHINE_START( telestrat );
104
 
 
105
 
 
106
 
/*----------- defined in video/oric.c -----------*/
107
 
 
108
 
VIDEO_START( oric );
109
 
SCREEN_UPDATE( oric );
110
 
 
111
 
 
112
 
#endif /* ORIC_H_ */