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

« back to all changes in this revision

Viewing changes to src/mame/video/mystston.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach, Emmanuel Kasper, Jordi Mallach
  • Date: 2012-06-05 20:02:23 UTC
  • mfrom: (0.3.1) (0.1.4)
  • Revision ID: package-import@ubuntu.com-20120605200223-gnlpogjrg6oqe9md
Tags: 0.146-1
[ Emmanuel Kasper ]
* New upstream release
* Drop patch to fix man pages section and patches to link with flac 
  and jpeg system lib: all this has been pushed upstream by Cesare Falco
* Add DM-Upload-Allowed: yes field.

[ Jordi Mallach ]
* Create a "gnu" TARGETOS stanza that defines NO_AFFINITY_NP.
* Stop setting TARGETOS to "unix" in d/rules. It should be autodetected,
  and set to the appropriate value.
* mame_manpage_section.patch: Change mame's manpage section to 6 (games),
  in the TH declaration.

Show diffs side-by-side

added added

removed removed

Lines of Context:
75
75
        static const int resistances_b [2] = { 3300, 1500 };
76
76
        double weights_rg[3], weights_b[2];
77
77
 
78
 
        UINT8 *color_prom = machine.region("proms")->base();
 
78
        UINT8 *color_prom = machine.root_device().memregion("proms")->base();
79
79
 
80
80
        compute_resistor_weights(0,     255, -1.0,
81
81
                        3, resistances_rg, weights_rg, 0, 4700,
123
123
 *
124
124
 *************************************/
125
125
 
126
 
WRITE8_HANDLER( mystston_video_control_w )
 
126
WRITE8_MEMBER(mystston_state::mystston_video_control_w)
127
127
{
128
 
        mystston_state *state = space->machine().driver_data<mystston_state>();
129
128
 
130
 
        *state->m_video_control = data;
 
129
        *m_video_control = data;
131
130
 
132
131
        /* D0-D1 - foreground text color */
133
132
        /* D2 - background page select */
134
133
        /* D3 - unused */
135
134
 
136
135
        /* D4-D5 - coin counters in flipped order */
137
 
        coin_counter_w(space->machine(), 0, data & 0x20);
138
 
        coin_counter_w(space->machine(), 1, data & 0x10);
 
136
        coin_counter_w(machine(), 0, data & 0x20);
 
137
        coin_counter_w(machine(), 1, data & 0x10);
139
138
 
140
139
        /* D6 - unused */
141
140
        /* D7 - screen flip */
258
257
{
259
258
        mystston_state *state = screen.machine().driver_data<mystston_state>();
260
259
 
261
 
        int flip = (*state->m_video_control & 0x80) ^ ((input_port_read(screen.machine(), "DSW1") & 0x20) << 2);
 
260
        int flip = (*state->m_video_control & 0x80) ^ ((screen.machine().root_device().ioport("DSW1")->read() & 0x20) << 2);
262
261
 
263
262
        set_palette(screen.machine(), state);
264
263