Previous 15994 Revisions Next

r5329 Friday 31st July, 2009 at 14:28:21 UTC by Jonathan Gevaryahu
[socrates] removed explicit cpu hack and use cpu_set_clockscale instead. still missing waitstates but this is cleaner for now.
[src/mess/drivers]socrates.c

src/mess/drivers/socrates.c
r5328r5329
7474#include "driver.h"
7575#include "cpu/z80/z80.h"
7676#include "socrates.lh"
77#include "sound/beep.h"
77//#include "sound/beep.h"
7878
7979
8080/* Components */
r5328r5329
118118    for (i = 0; i < 0x10000; i++)
119119        gfx[i] = (((i&0x1)?0x00:0xFF)^((i&0x100)?0x00:0xff));
120120// init sound channels to both be on lowest pitch and max volume
121    cpu_set_clockscale(cputag_get_cpu(machine, "maincpu"), 0.45f); /* RAM access waitstates etc. aren't emulated - slow the CPU to compensate */
121122}
122123
123124READ8_HANDLER( socrates_rom_bank_r )
r5328r5329
385386
386387static MACHINE_DRIVER_START(socrates)
387388    /* basic machine hardware */
388    //MDRV_CPU_ADD("maincpu", Z80, XTAL_21_4772MHz/6)  /* Toshiba TMPZ84C00AP @ 3.579545 MHz, verified, xtal is divided by 6 */
389    MDRV_CPU_ADD("maincpu", Z80, XTAL_21_4772MHz/12)  /* HACK to make system run at roughly the right speed until waitstates are done */
389    MDRV_CPU_ADD("maincpu", Z80, XTAL_21_4772MHz/6)  /* Toshiba TMPZ84C00AP @ 3.579545 MHz, verified, xtal is divided by 6 */
390390    MDRV_CPU_PROGRAM_MAP(z80_mem)
391391    MDRV_CPU_IO_MAP(z80_io)
392392    MDRV_QUANTUM_TIME(HZ(60))

Previous 15994 Revisions Next


© 1998-2018 The MESS Team