Previous 15994 Revisions Next

r4759 Tuesday 19th May, 2009 at 20:49:34 UTC by incog
Made the NES a clone of the Famicom, added Dendy as a clone.
[src/mess]messdriv.c
[src/mess/drivers]nes.c

src/mess/messdriv.c
r4758r4759
5353
5454   /* NINTENDO */
5555   DRIVER( nes )      /* Nintendo Entertainment System               */
56   DRIVER( dendy )      /* Dendy Classic russian famiclone               */
5657   DRIVER( nespal )   /* Nintendo Entertainment System               */
5758   DRIVER( famicom )
5859   DRIVER( famitwin )   /* Sharp Famicom Twin System                  */
src/mess/drivers/nes.c
r4758r4759
88  Based in part on the old xNes code, by Nicolas Hamel, Chuck Mason, Brad Oliver,
99  Richard Bannister and Jeff Mitchell.
1010
11  Todo: Famicom driver has hardcoded famicom disk-system, needs removing and
12        adding as it's own driver.
13
1114***************************************************************************/
1215
1316#include "driver.h"
r4758r4759
214217   ROM_FILL( 0x0000, 0x10000, 0x00 )
215218ROM_END
216219
220ROM_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 )
229ROM_END
217230
231
218232static void ppu_nmi(const device_config *device, int *ppu_regs)
219233{
220234   cputag_set_input_line(device->machine, "maincpu", INPUT_LINE_NMI, PULSE_LINE);
r4758r4759
294308   MDRV_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.00)
295309MACHINE_DRIVER_END
296310
311static 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)
330MACHINE_DRIVER_END
331
297332static MACHINE_DRIVER_START( famicom )
298333   MDRV_IMPORT_FROM( nes )
299334   
r4758r4759
336371
337372***************************************************************************/
338373
339/*     YEAR  NAME      PARENT    COMPAT MACHINE   INPUT     INIT      CONFIG    COMPANY   FULLNAME */
340CONS( 1983, famicom,   0,        0,      famicom,  famicom,  0,         famicom,   "Nintendo",   "Famicom" , GAME_NOT_WORKING)
341CONS( 1986, famitwin,  famicom,  0,      famicom,  famicom,  0,         famicom,   "Sharp",   "Famicom Twin" , GAME_NOT_WORKING)
342CONS( 1985, nes,       0,        0,      nes,      nes,      0,        0,      "Nintendo",   "Nintendo Entertainment System (NTSC)" , GAME_NOT_WORKING)
343CONS( 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 */
375CONS( 1983, famicom,   0,        0,   famicom,  famicom,  0,         famicom,   "Nintendo",   "Famicom" , GAME_NOT_WORKING)
376CONS( 1986, famitwin,  famicom,  0,   famicom,  famicom,  0,         famicom,   "Sharp",   "Famicom Twin" , GAME_NOT_WORKING)
377CONS( 1985, nes,       famicom,  0,   nes,      nes,      0,        0,   "Nintendo",   "Nintendo Entertainment System (NTSC)" , GAME_NOT_WORKING)
378CONS( 1987, nespal,    famicom,  0,   nespal,   nes,      0,         0,   "Nintendo",   "Nintendo Entertainment System (PAL)" , GAME_NOT_WORKING)
379CONS( 199?, dendy,     famicom,  0,   dendy,    nes,      0,        0,   "Steepler",   "Dendy Classic" , GAME_NOT_WORKING)
380

Previous 15994 Revisions Next


© 1998-2018 The MESS Team