Previous 15994 Revisions Next

r5322 Thursday 30th July, 2009 at 18:41:52 UTC by Jonathan Gevaryahu
[socrates] properly initialize vram state; when gfx rendering is in, this will be visible as a checkerboard pattern on startup, caused by the way the dram chips used work
[src/mess/drivers]socrates.c

src/mess/drivers/socrates.c
r5321r5322
125125 socrates_set_ram_bank( machine );
126126}
127127
128DRIVER_INIT( socrates )
129{
130   UINT8 *gfx = memory_region(machine, "vram");
131   int i;
132    /* fill vram with its init powerup bit pattern, so startup has the checkerboard screen */
133    for (i = 0; i < 0x10000; i++)
134        gfx[i] = (((i&0x1)?0x00:0xFF)^((i&0x100)?0x00:0xff));
135}
136
128137READ8_HANDLER( socrates_rom_bank_r )
129138{
130139 UINT8 data = 0xFF;
r5321r5322
151160 socrates_set_ram_bank( space->machine );
152161}
153162
163
154164/******************************************************************************
155165 Address Maps
156166******************************************************************************/
r5321r5322
203213    MDRV_CPU_PROGRAM_MAP(z80_mem)
204214    MDRV_CPU_IO_MAP(z80_io)
205215    MDRV_QUANTUM_TIME(HZ(60))
216    //MDRV_MACHINE_START(socrates)
206217    MDRV_MACHINE_RESET(socrates)
207218
208219    /* video hardware */
r5321r5322
229240    ROM_FILL(0x40000, 0x40000, 0xf3) /* fill empty space with 0xf3 */
230241
231242    ROM_REGION(0x10000, "vram", 0)
232    ROM_FILL(0x0000, 0xffff, 0xff) /* fill with ff, init should change this to the 'correct' startup pattern */
243    ROM_FILL(0x0000, 0xffff, 0xff) /* fill with ff, driver_init changes this to the 'correct' startup pattern */
233244ROM_END
234245   
235246ROM_START(socratfc)
236247    ROM_REGION(0x80000, "maincpu", 0)
237248    /* Socrates SAITOUT (French Canadian) NTSC */
238249    ROM_LOAD("socratfc.u1", 0x00000, 0x40000, CRC(042d9d21) SHA1(9ffc67b2721683b2536727d0592798fbc4d061cb)) /* fix label/name */
250    ROM_FILL(0x40000, 0x40000, 0xf3) /* fill empty space with 0xf3 */
251
252    ROM_REGION(0x10000, "vram", 0)
253    ROM_FILL(0x0000, 0xffff, 0xff) /* fill with ff, driver_init changes this to the 'correct' startup pattern */
239254ROM_END
240255
241256
r5321r5322
253268******************************************************************************/
254269
255270/*    YEAR  NAME        PARENT      COMPAT  MACHINE     INPUT   INIT CONFIG      COMPANY                     FULLNAME                            FLAGS */
256COMP( 1988, socrates,   0,          0,      socrates,   0, 0,   socrates,   "V-tech",        "Socrates Educational Video System",                        GAME_NOT_WORKING )
257COMP( 1988, socratfc,   socrates,   0,      socrates,   0, 0,   socrates,   "V-tech",        "Socrates SAITOUT",                        GAME_NOT_WORKING )
271COMP( 1988, socrates,   0,          0,      socrates,   0, socrates,   socrates,   "V-tech",        "Socrates Educational Video System",                        GAME_NOT_WORKING )
272COMP( 1988, socratfc,   socrates,   0,      socrates,   0, socrates,   socrates,   "V-tech",        "Socrates SAITOUT",                        GAME_NOT_WORKING )

Previous 15994 Revisions Next


© 1998-2018 The MESS Team