src/mess/drivers/socrates.c
| r5321 | r5322 | |
| 125 | 125 | socrates_set_ram_bank( machine ); |
| 126 | 126 | } |
| 127 | 127 | |
| 128 | DRIVER_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 | |
| 128 | 137 | READ8_HANDLER( socrates_rom_bank_r ) |
| 129 | 138 | { |
| 130 | 139 | UINT8 data = 0xFF; |
| r5321 | r5322 | |
| 151 | 160 | socrates_set_ram_bank( space->machine ); |
| 152 | 161 | } |
| 153 | 162 | |
| 163 | |
| 154 | 164 | /****************************************************************************** |
| 155 | 165 | Address Maps |
| 156 | 166 | ******************************************************************************/ |
| r5321 | r5322 | |
| 203 | 213 | MDRV_CPU_PROGRAM_MAP(z80_mem) |
| 204 | 214 | MDRV_CPU_IO_MAP(z80_io) |
| 205 | 215 | MDRV_QUANTUM_TIME(HZ(60)) |
| 216 | //MDRV_MACHINE_START(socrates) |
| 206 | 217 | MDRV_MACHINE_RESET(socrates) |
| 207 | 218 | |
| 208 | 219 | /* video hardware */ |
| r5321 | r5322 | |
| 229 | 240 | ROM_FILL(0x40000, 0x40000, 0xf3) /* fill empty space with 0xf3 */ |
| 230 | 241 | |
| 231 | 242 | 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 */ |
| 233 | 244 | ROM_END |
| 234 | 245 | |
| 235 | 246 | ROM_START(socratfc) |
| 236 | 247 | ROM_REGION(0x80000, "maincpu", 0) |
| 237 | 248 | /* Socrates SAITOUT (French Canadian) NTSC */ |
| 238 | 249 | 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 */ |
| 239 | 254 | ROM_END |
| 240 | 255 | |
| 241 | 256 | |
| r5321 | r5322 | |
| 253 | 268 | ******************************************************************************/ |
| 254 | 269 | |
| 255 | 270 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 256 | | COMP( 1988, socrates, 0, 0, socrates, 0, 0, socrates, "V-tech", "Socrates Educational Video System", GAME_NOT_WORKING ) |
| 257 | | COMP( 1988, socratfc, socrates, 0, socrates, 0, 0, socrates, "V-tech", "Socrates SAITOUT", GAME_NOT_WORKING ) |
| 271 | COMP( 1988, socrates, 0, 0, socrates, 0, socrates, socrates, "V-tech", "Socrates Educational Video System", GAME_NOT_WORKING ) |
| 272 | COMP( 1988, socratfc, socrates, 0, socrates, 0, socrates, socrates, "V-tech", "Socrates SAITOUT", GAME_NOT_WORKING ) |