src/mess/drivers/nes.c
| r4896 | r4897 | |
| 213 | 213 | |
| 214 | 214 | MDRV_PPU2C02_ADD( "ppu", nes_ppu_interface ) |
| 215 | 215 | |
| 216 | | /* sound hardware */ |
| 216 | /* sound hardware */ |
| 217 | 217 | MDRV_SPEAKER_STANDARD_MONO("mono") |
| 218 | 218 | MDRV_SOUND_ADD("nessound", NES, NTSC_CLOCK) |
| 219 | 219 | MDRV_SOUND_CONFIG(nes_apu_interface) |
| r4896 | r4897 | |
| 241 | 241 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC((106.53/(PAL_CLOCK/1000000)) * (PPU_VBLANK_LAST_SCANLINE_PAL-PPU_VBLANK_FIRST_SCANLINE+1+2))) |
| 242 | 242 | MDRV_VIDEO_START(nes_pal) |
| 243 | 243 | |
| 244 | | /* sound hardware */ |
| 244 | /* sound hardware */ |
| 245 | 245 | MDRV_SOUND_REPLACE("nessound", NES, PAL_CLOCK) |
| 246 | 246 | MDRV_SOUND_CONFIG(nes_apu_interface) |
| 247 | 247 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90) |
| r4896 | r4897 | |
| 262 | 262 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC((106.53/(PAL_CLOCK/1000000)) * (PPU_VBLANK_LAST_SCANLINE_PAL-PPU_VBLANK_FIRST_SCANLINE+1+2))) |
| 263 | 263 | MDRV_VIDEO_START(nes_pal) |
| 264 | 264 | |
| 265 | | /* sound hardware */ |
| 265 | /* sound hardware */ |
| 266 | 266 | MDRV_SOUND_REPLACE("nessound", NES, 26601712/15) /* 26.601712MHz / 15 == 1.77344746666... MHz */ |
| 267 | 267 | MDRV_SOUND_CONFIG(nes_apu_interface) |
| 268 | 268 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.90) |
| r4896 | r4897 | |
| 280 | 280 | |
| 281 | 281 | |
| 282 | 282 | ROM_START( nes ) |
| 283 | | ROM_REGION( 0x10000, "maincpu",0 ) /* Main RAM + program banks */ |
| 283 | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 284 | 284 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 285 | | ROM_REGION( 0x2000, "gfx1",0 ) /* VROM */ |
| 285 | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 286 | 286 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 287 | | ROM_REGION( 0x2000, "gfx2",0 ) /* VRAM */ |
| 287 | ROM_REGION( 0x2000, "gfx2", 0 ) /* VRAM */ |
| 288 | 288 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 289 | | ROM_REGION( 0x10000, "user1",0 ) /* WRAM */ |
| 289 | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 290 | 290 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 291 | 291 | ROM_END |
| 292 | 292 | |
| 293 | 293 | ROM_START( nespal ) |
| 294 | | ROM_REGION( 0x10000, "maincpu",0 ) /* Main RAM + program banks */ |
| 294 | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 295 | 295 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 296 | | ROM_REGION( 0x2000, "gfx1",0 ) /* VROM */ |
| 296 | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 297 | 297 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 298 | | ROM_REGION( 0x2000, "gfx2",0 ) /* VRAM */ |
| 298 | ROM_REGION( 0x2000, "gfx2", 0 ) /* VRAM */ |
| 299 | 299 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 300 | | ROM_REGION( 0x10000, "user1",0 ) /* WRAM */ |
| 300 | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 301 | 301 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 302 | 302 | ROM_END |
| 303 | 303 | |
| 304 | 304 | ROM_START( famicom ) |
| 305 | | ROM_REGION( 0x10000, "maincpu",0 ) /* Main RAM + program banks */ |
| 306 | | ROM_LOAD_OPTIONAL ("disksys.rom", 0xe000, 0x2000, CRC(5e607dcf) SHA1(57fe1bdee955bb48d357e463ccbf129496930b62)) |
| 305 | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 306 | ROM_LOAD_OPTIONAL( "disksys.rom", 0xe000, 0x2000, CRC(5e607dcf) SHA1(57fe1bdee955bb48d357e463ccbf129496930b62) ) |
| 307 | 307 | |
| 308 | | ROM_REGION( 0x2000, "gfx1",0 ) /* VROM */ |
| 308 | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 309 | 309 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 310 | | ROM_REGION( 0x2000, "gfx2",0 ) /* VRAM */ |
| 310 | ROM_REGION( 0x2000, "gfx2", 0 ) /* VRAM */ |
| 311 | 311 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 312 | | ROM_REGION( 0x10000, "user1",0 ) /* WRAM */ |
| 312 | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 313 | 313 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 314 | 314 | ROM_END |
| 315 | 315 | |
| 316 | 316 | ROM_START( famitwin ) |
| 317 | | ROM_REGION( 0x10000, "maincpu",0 ) /* Main RAM + program banks */ |
| 318 | | ROM_LOAD_OPTIONAL ("disksyst.rom", 0xe000, 0x2000, CRC(4df24a6c) SHA1(e4e41472c454f928e53eb10e0509bf7d1146ecc1)) |
| 317 | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 318 | ROM_LOAD_OPTIONAL( "disksyst.rom", 0xe000, 0x2000, CRC(4df24a6c) SHA1(e4e41472c454f928e53eb10e0509bf7d1146ecc1) ) |
| 319 | 319 | |
| 320 | | ROM_REGION( 0x2000, "gfx1",0 ) /* VROM */ |
| 320 | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 321 | 321 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 322 | | ROM_REGION( 0x2000, "gfx2",0 ) /* VRAM */ |
| 322 | ROM_REGION( 0x2000, "gfx2", 0 ) /* VRAM */ |
| 323 | 323 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 324 | | ROM_REGION( 0x10000, "user1",0 ) /* WRAM */ |
| 324 | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 325 | 325 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 326 | 326 | ROM_END |
| 327 | 327 | |
| 328 | 328 | ROM_START( m82 ) |
| 329 | | ROM_REGION( 0x10000, "maincpu",0 ) /* Main RAM + program banks */ |
| 330 | | ROM_LOAD_OPTIONAL ("m82_v1_0.bin", 0xe000, 0x2000, CRC(7d56840a) SHA1(cbd2d14fa073273ba58367758f40d67fd8a9106d)) |
| 329 | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 330 | ROM_LOAD( "m82_v1_0.bin", 0xe000, 0x2000, CRC(7d56840a) SHA1(cbd2d14fa073273ba58367758f40d67fd8a9106d) ) |
| 331 | 331 | |
| 332 | | ROM_REGION( 0x2000, "gfx1",0 ) /* VROM */ |
| 332 | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 333 | 333 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 334 | | ROM_REGION( 0x2000, "gfx2",0 ) /* VRAM */ |
| 334 | ROM_REGION( 0x2000, "gfx2", 0 ) /* VRAM */ |
| 335 | 335 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 336 | | ROM_REGION( 0x10000, "user1",0 ) /* WRAM */ |
| 336 | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 337 | 337 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 338 | 338 | ROM_END |
| 339 | 339 | |
| 340 | // see http://www.disgruntleddesigner.com/chrisc/drpcjr/index.html |
| 341 | // and http://www.disgruntleddesigner.com/chrisc/drpcjr/DrPCJrMemMap.txt |
| 342 | ROM_START( drpcjr ) |
| 343 | ROM_REGION( 0x18000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 344 | /* 4 banks to be mapped in 0xe000-0xffff (or 8 banks to be mapped in 0xe000-0xefff & 0xf000-0xffff). |
| 345 | Banks selected by writing at 0x4180 */ |
| 346 | ROM_LOAD("drpcjr_bios.bin", 0x10000, 0x8000, CRC(c8fbef89) SHA1(2cb0a817b31400cdf27817d09bae7e69f41b062b) ) // bios vers. 1.0a |
| 347 | // Not sure if we should support this: hacked version 1.5a by Chris Covell with bugfixes and GameGenie support |
| 348 | // ROM_LOAD("drpcjr_v1_5_gg.bin", 0x10000, 0x8000, CRC(98f2033b) SHA1(93c114da787a19279d1a46667c2f69b49e25d4f1) ) |
| 349 | |
| 350 | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 351 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 352 | ROM_REGION( 0x2000, "gfx2", 0 ) /* VRAM */ |
| 353 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 354 | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 355 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 356 | ROM_END |
| 357 | |
| 340 | 358 | ROM_START( dendy ) |
| 341 | | ROM_REGION( 0x10000, "maincpu",0 ) /* Main RAM + program banks */ |
| 359 | ROM_REGION( 0x10000, "maincpu", 0 ) /* Main RAM + program banks */ |
| 342 | 360 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 343 | | ROM_REGION( 0x2000, "gfx1",0 ) /* VROM */ |
| 361 | ROM_REGION( 0x2000, "gfx1", 0 ) /* VROM */ |
| 344 | 362 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 345 | | ROM_REGION( 0x2000, "gfx2",0 ) /* VRAM */ |
| 363 | ROM_REGION( 0x2000, "gfx2", 0 ) /* VRAM */ |
| 346 | 364 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 347 | | ROM_REGION( 0x10000, "user1",0 ) /* WRAM */ |
| 365 | ROM_REGION( 0x10000, "user1", 0 ) /* WRAM */ |
| 348 | 366 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 349 | 367 | ROM_END |
| 350 | 368 | |
| r4896 | r4897 | |
| 390 | 408 | CONS( 1983, famicom, nes, 0, famicom, famicom, 0, famicom, "Nintendo", "Famicom Disk System", GAME_NOT_WORKING ) |
| 391 | 409 | CONS( 1986, famitwin, nes, 0, famicom, famicom, 0, famicom, "Sharp", "Famicom Twin", GAME_NOT_WORKING ) |
| 392 | 410 | CONS( 198?, m82, nes, 0, nes, nes, 0, 0, "Nintendo", "M82 Display Unit", GAME_NOT_WORKING ) |
| 411 | CONS( 1996, drpcjr, nes, 0, famicom, nes, 0, 0, "Bung", "Doctor PC Jr", GAME_NOT_WORKING ) |
| 393 | 412 | CONS( 199?, dendy, nes, 0, dendy, nes, 0, 0, "Steepler", "Dendy Classic", GAME_NOT_WORKING ) |
src/mess/drivers/snes.c
| r4896 | r4897 | |
| 228 | 228 | ***************************************************************************/ |
| 229 | 229 | |
| 230 | 230 | ROM_START(snes) |
| 231 | | ROM_REGION(0x100, "user5", 0) /* IPL ROM */ |
| 232 | | ROM_LOAD("spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0)) /* boot rom */ |
| 233 | | ROM_REGION(0x800, "user6", 0) /* add-on chip ROMs (DSP, SFX, etc) */ |
| 234 | | ROM_LOAD("dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1)) |
| 231 | ROM_REGION( 0x100, "user5", 0 ) /* IPL ROM */ |
| 232 | ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) ) /* boot rom */ |
| 233 | ROM_REGION( 0x800, "user6", 0 ) /* add-on chip ROMs (DSP, SFX, etc) */ |
| 234 | ROM_LOAD( "dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1) ) |
| 235 | 235 | ROM_END |
| 236 | 236 | |
| 237 | 237 | ROM_START(snespal) |
| 238 | | ROM_REGION(0x100, "user5", 0) /* IPL ROM */ |
| 239 | | ROM_LOAD("spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0)) /* boot rom */ |
| 240 | | ROM_REGION(0x800, "user6", 0) /* add-on chip ROMs (DSP, SFX, etc) */ |
| 241 | | ROM_LOAD("dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1)) |
| 238 | ROM_REGION( 0x100, "user5", 0 ) /* IPL ROM */ |
| 239 | ROM_LOAD( "spc700.rom", 0, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) ) /* boot rom */ |
| 240 | ROM_REGION( 0x800, "user6", 0 ) /* add-on chip ROMs (DSP, SFX, etc) */ |
| 241 | ROM_LOAD( "dsp1data.bin", 0x000000, 0x000800, CRC(4b02d66d) SHA1(1534f4403d2a0f68ba6e35186fe7595d33de34b1) ) |
| 242 | 242 | ROM_END |
| 243 | 243 | |
| 244 | ROM_START(sfcbox) |
| 245 | /* atm, we only load these here, but we don't really emulate anything */ |
| 246 | ROM_REGION( 0x10000, "grom", 0 ) |
| 247 | ROM_LOAD( "grom1-1.bin", 0x0000, 0x8000, CRC(333bf9a7) SHA1(5d0cd9ca29e5580c3eebe9f136839987c879f979) ) |
| 248 | ROM_LOAD( "grom1-3.bin", 0x8000, 0x8000, CRC(ebec4c1c) SHA1(d638ef1486b4c0b3d4d5b666929ca7947e16efad) ) |
| 249 | |
| 250 | ROM_REGION( 0x80000, "atrom", 0 ) |
| 251 | ROM_LOAD( "atrom-4s-0.smc", 0x00000, 0x80000, CRC(ad3ec05c) SHA1(a3d336db585fe02a37c323422d9db6a33fd489a6) ) |
| 252 | |
| 253 | ROM_REGION( 0x100, "user5", 0 ) /* IPL ROM */ |
| 254 | ROM_LOAD( "spc700.rom", 0x00, 0x40, CRC(44bb3a40) SHA1(97e352553e94242ae823547cd853eecda55c20f0) ) /* boot rom */ |
| 255 | |
| 256 | ROM_REGION( 0x800, "user6", ROMREGION_ERASE00 ) /* add-on chip ROMs (DSP, SFX, etc) */ |
| 257 | ROM_END |
| 258 | |
| 244 | 259 | /*************************************************************************** |
| 245 | 260 | |
| 246 | 261 | Game driver(s) |
| 247 | 262 | |
| 248 | 263 | ***************************************************************************/ |
| 249 | 264 | |
| 250 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 251 | | CONS( 1989, snes, 0, 0, snes, snes, 0, 0, "Nintendo", "Super Nintendo Entertainment System (NTSC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 265 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME FLAGS */ |
| 266 | CONS( 1989, snes, 0, 0, snes, snes, 0, 0, "Nintendo", "Super Nintendo Entertainment System / Super Famicom (NTSC)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 252 | 267 | CONS( 1991, snespal, snes, 0, snespal, snes, 0, 0, "Nintendo", "Super Nintendo Entertainment System (PAL)", GAME_IMPERFECT_GRAPHICS | GAME_IMPERFECT_SOUND ) |
| 268 | CONS( 199?, sfcbox, snes, 0, snes, snes, 0, 0, "Nintendo", "Super Famicom Box (NTSC)", GAME_NOT_WORKING ) |