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

« back to all changes in this revision

Viewing changes to mess/src/mess/includes/crvision.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
 
#pragma once
2
 
 
3
 
#ifndef __CRVISION__
4
 
#define __CRVISION__
5
 
 
6
 
#define ADDRESS_MAP_MODERN
7
 
 
8
 
#include "emu.h"
9
 
#include "cpu/m6502/m6502.h"
10
 
#include "imagedev/cartslot.h"
11
 
#include "imagedev/cassette.h"
12
 
#include "imagedev/flopdrv.h"
13
 
#include "formats/basicdsk.h"
14
 
#include "machine/ctronics.h"
15
 
#include "machine/6821pia.h"
16
 
#include "sound/sn76496.h"
17
 
#include "sound/wave.h"
18
 
#include "video/tms9928a.h"
19
 
#include "machine/ram.h"
20
 
 
21
 
#define SCREEN_TAG              "screen"
22
 
#define M6502_TAG               "u2"
23
 
#define TMS9929_TAG             "u3"
24
 
#define PIA6821_TAG             "u21"
25
 
#define SN76489_TAG             "u22"
26
 
#define CENTRONICS_TAG  "centronics"
27
 
 
28
 
#define BANK_ROM1               "bank1"
29
 
#define BANK_ROM2               "bank2"
30
 
 
31
 
class crvision_state : public driver_device
32
 
{
33
 
public:
34
 
        crvision_state(const machine_config &mconfig, device_type type, const char *tag)
35
 
                : driver_device(mconfig, type, tag),
36
 
                  m_maincpu(*this, M6502_TAG),
37
 
                  m_pia(*this, PIA6821_TAG),
38
 
                  m_psg(*this, SN76489_TAG),
39
 
                  m_cassette(*this, CASSETTE_TAG),
40
 
                  m_centronics(*this, CENTRONICS_TAG),
41
 
                  m_ram(*this, RAM_TAG)
42
 
        { }
43
 
 
44
 
        required_device<cpu_device> m_maincpu;
45
 
        required_device<pia6821_device> m_pia;
46
 
        required_device<device_t> m_psg;
47
 
        required_device<cassette_image_device> m_cassette;
48
 
        required_device<device_t> m_centronics;
49
 
        required_device<device_t> m_ram;
50
 
 
51
 
        virtual void machine_start();
52
 
 
53
 
        DECLARE_READ8_MEMBER( centronics_status_r );
54
 
        DECLARE_WRITE8_MEMBER( centronics_ctrl_w );
55
 
        DECLARE_WRITE8_MEMBER( pia_pa_w );
56
 
        DECLARE_READ8_MEMBER( pia_pa_r );
57
 
        DECLARE_READ8_MEMBER( pia_pb_r );
58
 
 
59
 
        UINT8 read_keyboard(int pa);
60
 
 
61
 
        /* keyboard state */
62
 
        UINT8 m_keylatch;
63
 
 
64
 
        /* joystick state */
65
 
        UINT8 m_joylatch;
66
 
};
67
 
 
68
 
class crvision_pal_state : public crvision_state
69
 
{
70
 
public:
71
 
        crvision_pal_state(const machine_config &mconfig, device_type type, const char *tag)
72
 
                : crvision_state(mconfig, type, tag)
73
 
        { }
74
 
 
75
 
        virtual void machine_start();
76
 
};
77
 
 
78
 
class laser2001_state : public crvision_state
79
 
{
80
 
public:
81
 
        laser2001_state(const machine_config &mconfig, device_type type, const char *tag)
82
 
                : crvision_state(mconfig, type, tag)
83
 
        { }
84
 
 
85
 
        virtual void machine_start();
86
 
 
87
 
        DECLARE_READ8_MEMBER( pia_pa_r );
88
 
        DECLARE_WRITE8_MEMBER( pia_pa_w );
89
 
        DECLARE_READ8_MEMBER( pia_pb_r );
90
 
        DECLARE_WRITE8_MEMBER( pia_pb_w );
91
 
        DECLARE_READ_LINE_MEMBER( pia_ca1_r );
92
 
        DECLARE_WRITE_LINE_MEMBER( pia_ca2_w );
93
 
        DECLARE_READ_LINE_MEMBER( pia_cb1_r );
94
 
        DECLARE_WRITE_LINE_MEMBER( pia_cb2_w );
95
 
};
96
 
 
97
 
#endif