Skip to content

Commit 3b67f9a

Browse files
committed
ohmygod: increase oki clock [Mylstar Electronics]
1 parent a60e7b7 commit 3b67f9a

File tree

1 file changed

+5
-8
lines changed

1 file changed

+5
-8
lines changed

src/mame/atlus/ohmygod.cpp

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,8 @@ TILE_GET_INFO_MEMBER(ohmygod_state::get_tile_info)
9393
{
9494
uint16_t code = m_videoram[2 * tile_index + 1];
9595
uint16_t attr = m_videoram[2 * tile_index];
96-
tileinfo.set(0,
97-
code,
98-
(attr & 0x0f00) >> 8,
99-
0);
96+
97+
tileinfo.set(0, code, (attr & 0x0f00) >> 8, 0);
10098
}
10199

102100

@@ -210,7 +208,7 @@ void ohmygod_state::main_map(address_map &map)
210208
map(0x600000, 0x6007ff).ram().w(m_palette, FUNC(palette_device::write16)).share("palette");
211209
map(0x700000, 0x703fff).ram().share(m_spriteram);
212210
map(0x704000, 0x707fff).ram();
213-
map(0x708000, 0x70ffff).ram(); // Work RAM
211+
map(0x708000, 0x70ffff).ram(); // Work RAM
214212
map(0x800000, 0x800001).portr("P1");
215213
map(0x800002, 0x800003).portr("P2");
216214
map(0x900000, 0x900001).w(FUNC(ohmygod_state::ctrl_w));
@@ -461,8 +459,7 @@ void ohmygod_state::ohmygod(machine_config &config)
461459
m_maincpu->set_addrmap(AS_PROGRAM, &ohmygod_state::main_map);
462460
m_maincpu->set_vblank_int("screen", FUNC(ohmygod_state::irq1_line_hold));
463461

464-
WATCHDOG_TIMER(config, "watchdog").set_time(attotime::from_seconds(3)); // a guess, and certainly wrong
465-
462+
WATCHDOG_TIMER(config, "watchdog").set_time(attotime::from_seconds(3)); // a guess, and certainly wrong
466463

467464
// video hardware
468465
screen_device &screen(SCREEN(config, "screen", SCREEN_TYPE_RASTER));
@@ -480,7 +477,7 @@ void ohmygod_state::ohmygod(machine_config &config)
480477
// sound hardware
481478
SPEAKER(config, "mono").front_center();
482479

483-
okim6295_device &oki(OKIM6295(config, "oki", 14000000 / 8, okim6295_device::PIN7_HIGH));
480+
okim6295_device &oki(OKIM6295(config, "oki", 12000000 / 6, okim6295_device::PIN7_HIGH));
484481
oki.set_addrmap(0, &ohmygod_state::oki_map);
485482
oki.add_route(ALL_OUTPUTS, "mono", 1.0);
486483
}

0 commit comments

Comments
 (0)