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

« back to all changes in this revision

Viewing changes to mess/src/mess/includes/samcoupe.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/coupe.h
4
 
 *
5
 
 * SAM Coupe
6
 
 *
7
 
 * Driver by Lee Hammerton
8
 
 *
9
 
 ****************************************************************************/
10
 
 
11
 
#ifndef SAMCOUPE_H_
12
 
#define SAMCOUPE_H_
13
 
 
14
 
/* screen dimensions */
15
 
#define SAM_BLOCK                       8
16
 
 
17
 
#define SAM_TOTAL_WIDTH         SAM_BLOCK*96
18
 
#define SAM_TOTAL_HEIGHT        312
19
 
#define SAM_SCREEN_WIDTH        SAM_BLOCK*64
20
 
#define SAM_SCREEN_HEIGHT       192
21
 
#define SAM_BORDER_LEFT         SAM_BLOCK*4
22
 
#define SAM_BORDER_RIGHT        SAM_BLOCK*4
23
 
#define SAM_BORDER_TOP          37
24
 
#define SAM_BORDER_BOTTOM       46
25
 
 
26
 
/* interrupt sources */
27
 
#define SAM_LINE_INT     0x01
28
 
#define SAM_MOUSE_INT    0x02
29
 
#define SAM_MIDIIN_INT   0x04
30
 
#define SAM_FRAME_INT    0x08
31
 
#define SAM_MIDIOUT_INT  0x10
32
 
 
33
 
 
34
 
class samcoupe_state :  public driver_device
35
 
{
36
 
public:
37
 
        samcoupe_state(const machine_config &mconfig, device_type type, const char *tag)
38
 
                        : driver_device(mconfig, type, tag) { }
39
 
 
40
 
        emu_timer *m_video_update_timer;
41
 
 
42
 
        UINT8 m_lmpr, m_hmpr, m_vmpr; /* memory pages */
43
 
        UINT8 m_lext, m_hext;       /* extended memory page */
44
 
        UINT8 m_border;           /* border */
45
 
        UINT8 m_clut[16];         /* color lookup table, 16 entries */
46
 
        UINT8 m_line_int;         /* line interrupt */
47
 
        UINT8 m_status;           /* status register */
48
 
 
49
 
        /* attribute */
50
 
        UINT8 m_attribute;
51
 
 
52
 
        /* mouse */
53
 
        int m_mouse_index;
54
 
        emu_timer *m_mouse_reset;
55
 
        UINT8 m_mouse_data[9];
56
 
        int m_mouse_x, m_mouse_y;
57
 
        UINT8 *m_videoram;
58
 
};
59
 
 
60
 
 
61
 
/*----------- defined in drivers/samcoupe.c -----------*/
62
 
 
63
 
void samcoupe_irq(device_t *device, UINT8 src);
64
 
 
65
 
 
66
 
/*----------- defined in machine/samcoupe.c -----------*/
67
 
 
68
 
void samcoupe_update_memory(address_space *space);
69
 
UINT8 samcoupe_mouse_r(running_machine &machine);
70
 
 
71
 
WRITE8_HANDLER( samcoupe_ext_mem_w );
72
 
MACHINE_START( samcoupe );
73
 
MACHINE_RESET( samcoupe );
74
 
 
75
 
 
76
 
/*----------- defined in video/samcoupe.c -----------*/
77
 
 
78
 
TIMER_CALLBACK( sam_video_update_callback );
79
 
 
80
 
 
81
 
#endif /* SAMCOUPE_H_ */