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

« back to all changes in this revision

Viewing changes to src/mame/drivers/victory.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:
108
108
 *
109
109
 *************************************/
110
110
 
111
 
static WRITE8_HANDLER( lamp_control_w )
 
111
WRITE8_MEMBER(victory_state::lamp_control_w)
112
112
{
113
 
        set_led_status(space->machine(), 0, data & 0x80);
114
 
        set_led_status(space->machine(), 1, data & 0x40);
115
 
        set_led_status(space->machine(), 2, data & 0x20);
116
 
        set_led_status(space->machine(), 3, data & 0x10);
 
113
        set_led_status(machine(), 0, data & 0x80);
 
114
        set_led_status(machine(), 1, data & 0x40);
 
115
        set_led_status(machine(), 2, data & 0x20);
 
116
        set_led_status(machine(), 3, data & 0x10);
117
117
}
118
118
 
119
119
 
124
124
 *
125
125
 *************************************/
126
126
 
127
 
static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8 )
 
127
static ADDRESS_MAP_START( main_map, AS_PROGRAM, 8, victory_state )
128
128
        AM_RANGE(0x0000, 0xbfff) AM_ROM
129
129
        AM_RANGE(0xc000, 0xc0ff) AM_READ(victory_video_control_r)
130
130
        AM_RANGE(0xc100, 0xc1ff) AM_WRITE(victory_video_control_w)
131
131
        AM_RANGE(0xc200, 0xc3ff) AM_WRITE(victory_paletteram_w)
132
 
        AM_RANGE(0xc400, 0xc7ff) AM_RAM AM_BASE_MEMBER(victory_state, m_videoram)
133
 
        AM_RANGE(0xc800, 0xdfff) AM_RAM AM_BASE_MEMBER(victory_state, m_charram)
 
132
        AM_RANGE(0xc400, 0xc7ff) AM_RAM AM_SHARE("videoram")
 
133
        AM_RANGE(0xc800, 0xdfff) AM_RAM AM_SHARE("charram")
134
134
        AM_RANGE(0xe000, 0xefff) AM_RAM
135
135
        AM_RANGE(0xf000, 0xf7ff) AM_RAM AM_SHARE("nvram")
136
 
        AM_RANGE(0xf800, 0xf800) AM_MIRROR(0x07fc) AM_DEVREADWRITE("custom", victory_sound_response_r, victory_sound_command_w)
137
 
        AM_RANGE(0xf801, 0xf801) AM_MIRROR(0x07fc) AM_DEVREAD("custom", victory_sound_status_r)
 
136
        AM_RANGE(0xf800, 0xf800) AM_MIRROR(0x07fc) AM_DEVREADWRITE_LEGACY("custom", victory_sound_response_r, victory_sound_command_w)
 
137
        AM_RANGE(0xf801, 0xf801) AM_MIRROR(0x07fc) AM_DEVREAD_LEGACY("custom", victory_sound_status_r)
138
138
ADDRESS_MAP_END
139
139
 
140
140
 
141
 
static ADDRESS_MAP_START( main_io_map, AS_IO, 8 )
 
141
static ADDRESS_MAP_START( main_io_map, AS_IO, 8, victory_state )
142
142
        ADDRESS_MAP_GLOBAL_MASK(0xff)
143
143
        AM_RANGE(0x00, 0x00) AM_MIRROR(0x03) AM_READ_PORT("SW2")
144
144
        AM_RANGE(0x04, 0x04) AM_MIRROR(0x03) AM_READ_PORT("SW1")