src/mess/drivers/nes.c
| r4758 | r4759 | |
| 8 | 8 | Based in part on the old xNes code, by Nicolas Hamel, Chuck Mason, Brad Oliver, |
| 9 | 9 | Richard Bannister and Jeff Mitchell. |
| 10 | 10 | |
| 11 | Todo: Famicom driver has hardcoded famicom disk-system, needs removing and |
| 12 | adding as it's own driver. |
| 13 | |
| 11 | 14 | ***************************************************************************/ |
| 12 | 15 | |
| 13 | 16 | #include "driver.h" |
| r4758 | r4759 | |
| 214 | 217 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 215 | 218 | ROM_END |
| 216 | 219 | |
| 220 | ROM_START( dendy ) |
| 221 | ROM_REGION( 0x10000, "maincpu",0 ) /* Main RAM + program banks */ |
| 222 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 223 | ROM_REGION( 0x2000, "gfx1",0 ) /* VROM */ |
| 224 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 225 | ROM_REGION( 0x2000, "gfx2",0 ) /* VRAM */ |
| 226 | ROM_FILL( 0x0000, 0x2000, 0x00 ) |
| 227 | ROM_REGION( 0x10000, "user1",0 ) /* WRAM */ |
| 228 | ROM_FILL( 0x0000, 0x10000, 0x00 ) |
| 229 | ROM_END |
| 217 | 230 | |
| 231 | |
| 218 | 232 | static void ppu_nmi(const device_config *device, int *ppu_regs) |
| 219 | 233 | { |
| 220 | 234 | cputag_set_input_line(device->machine, "maincpu", INPUT_LINE_NMI, PULSE_LINE); |
| r4758 | r4759 | |
| 294 | 308 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 295 | 309 | MACHINE_DRIVER_END |
| 296 | 310 | |
| 311 | static MACHINE_DRIVER_START( dendy ) |
| 312 | MDRV_IMPORT_FROM( nes ) |
| 313 | |
| 314 | /* basic machine hardware */ |
| 315 | MDRV_CPU_REPLACE("maincpu", N2A03, 26601712/15) /* 26.601712MHz / 15 == 1.77344746666... MHz */ |
| 316 | |
| 317 | MDRV_DEVICE_REMOVE( "ppu" ) |
| 318 | MDRV_PPU2C07_ADD( "ppu", nes_ppu_interface ) |
| 319 | |
| 320 | /* video hardware */ |
| 321 | MDRV_SCREEN_MODIFY("screen") |
| 322 | MDRV_SCREEN_REFRESH_RATE(50.00697796827) |
| 323 | MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC((106.53/(PAL_CLOCK/1000000)) * (PPU_VBLANK_LAST_SCANLINE_PAL-PPU_VBLANK_FIRST_SCANLINE+1+2))) |
| 324 | MDRV_VIDEO_START(nes_pal) |
| 325 | |
| 326 | /* sound hardware */ |
| 327 | MDRV_SOUND_REPLACE("nessound", NES, 26601712/15) /* 26.601712MHz / 15 == 1.77344746666... MHz */ |
| 328 | MDRV_SOUND_CONFIG(nes_apu_interface) |
| 329 | MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00) |
| 330 | MACHINE_DRIVER_END |
| 331 | |
| 297 | 332 | static MACHINE_DRIVER_START( famicom ) |
| 298 | 333 | MDRV_IMPORT_FROM( nes ) |
| 299 | 334 | |
| r4758 | r4759 | |
| 336 | 371 | |
| 337 | 372 | ***************************************************************************/ |
| 338 | 373 | |
| 339 | | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 340 | | CONS( 1983, famicom, 0, 0, famicom, famicom, 0, famicom, "Nintendo", "Famicom" , GAME_NOT_WORKING) |
| 341 | | CONS( 1986, famitwin, famicom, 0, famicom, famicom, 0, famicom, "Sharp", "Famicom Twin" , GAME_NOT_WORKING) |
| 342 | | CONS( 1985, nes, 0, 0, nes, nes, 0, 0, "Nintendo", "Nintendo Entertainment System (NTSC)" , GAME_NOT_WORKING) |
| 343 | | CONS( 1987, nespal, nes, 0, nespal, nes, 0, 0, "Nintendo", "Nintendo Entertainment System (PAL)" , GAME_NOT_WORKING) |
| 374 | /* YEAR NAME PARENT COMPAT MACHINE INPUT INIT CONFIG COMPANY FULLNAME */ |
| 375 | CONS( 1983, famicom, 0, 0, famicom, famicom, 0, famicom, "Nintendo", "Famicom" , GAME_NOT_WORKING) |
| 376 | CONS( 1986, famitwin, famicom, 0, famicom, famicom, 0, famicom, "Sharp", "Famicom Twin" , GAME_NOT_WORKING) |
| 377 | CONS( 1985, nes, famicom, 0, nes, nes, 0, 0, "Nintendo", "Nintendo Entertainment System (NTSC)" , GAME_NOT_WORKING) |
| 378 | CONS( 1987, nespal, famicom, 0, nespal, nes, 0, 0, "Nintendo", "Nintendo Entertainment System (PAL)" , GAME_NOT_WORKING) |
| 379 | CONS( 199?, dendy, famicom, 0, dendy, nes, 0, 0, "Steepler", "Dendy Classic" , GAME_NOT_WORKING) |
| 380 | |