Skip to content

Commit 85d7b62

Browse files
committed
skeleton/seoul88.cpp: minor inputs work
1 parent 71f0b5d commit 85d7b62

File tree

1 file changed

+12
-8
lines changed

1 file changed

+12
-8
lines changed

Diff for: src/mame/skeleton/seoul88.cpp

+12-8
Original file line numberDiff line numberDiff line change
@@ -125,6 +125,8 @@ void seoul88_state::attribute_ram_w(offs_t offset, uint8_t data)
125125

126126
uint32_t seoul88_state::screen_update(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect)
127127
{
128+
bitmap.fill(rgb_t::black(), cliprect);
129+
128130
m_tilemap->draw(screen, bitmap, cliprect, 0, 0);
129131

130132
return 0;
@@ -146,15 +148,17 @@ void seoul88_state::program_map(address_map &map)
146148
void seoul88_state::io_map(address_map &map)
147149
{
148150
map.global_mask(0xff);
151+
map.unmap_value_high();
149152

150-
map(0x00, 0x00).portr("DSW1");
151-
map(0x01, 0x01).portr("DSW2");
152-
map(0x02, 0x02).portr("DSW3");
153153
map(0x10, 0x10).portr("IN0");
154154
map(0x11, 0x11).portr("IN1");
155+
// map(0x1f, 0x1f).portr(""); some dips in test mode are read from here, but test mode doesn't seem to match what's on PCB
156+
map(0xb8, 0xb8).portr("DSW1");
157+
map(0xb9, 0xb9).portr("DSW2");
158+
map(0xba, 0xba).portr("DSW3");
155159
}
156160

157-
static INPUT_PORTS_START( seoul88 )
161+
static INPUT_PORTS_START( seoul88 ) // there are 3 8-dip banks on PCB but test mode shows 5 (probably remnant of other previous games)
158162
PORT_START("IN0")
159163
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
160164
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
@@ -167,13 +171,13 @@ static INPUT_PORTS_START( seoul88 )
167171

168172
PORT_START("IN1")
169173
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_UNKNOWN )
170-
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
174+
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_SERVICE )
171175
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
172176
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN )
173-
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_UNKNOWN )
177+
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_GAMBLE_KEYOUT )
174178
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_UNKNOWN )
175-
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
176-
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
179+
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_GAMBLE_SERVICE )
180+
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_GAMBLE_BOOK )
177181

178182
PORT_START("DSW1")
179183
PORT_DIPUNKNOWN_DIPLOC(0x01, 0x01, "SW1:1")

0 commit comments

Comments
 (0)