r8611 Saturday 24th July, 2010 at 19:23:11 UTC by Angelo Salese
[RX-78]: Hooked up cart slot
[src/mess/drivers]rx78.c

src/mess/drivers/rx78.c
r8610r8611
11/***************************************************************************
22
3        Bandai Gundam RX-78
3   Gundam RX-78 (c) 1983 Bandai
44
5        13/07/2010 Skeleton driver.
5   preliminary driver by Angelo Salese
66
7   TODO:
8   - Rewrite vram routines, they aren't quite right (we're currently drawing
9     stuff from the work ram and not the proper bitmap buffer)
10
711****************************************************************************/
812
913#include "emu.h"
1014#include "cpu/z80/z80.h"
1115#include "sound/sn76496.h"
16#include "devices/cartslot.h"
1217
1318static VIDEO_START( rx78 )
1419{
r8610r8611
8590static ADDRESS_MAP_START(rx78_mem, ADDRESS_SPACE_PROGRAM, 8)
8691   ADDRESS_MAP_UNMAP_HIGH
8792   AM_RANGE(0x0000, 0x1fff) AM_ROM
88
89   AM_RANGE(0x2000, 0xffff) AM_RAM AM_REGION("maincpu", 0x2000)
93   AM_RANGE(0x2000, 0x5fff) AM_ROM AM_REGION("cart_img", 0x0000)
94   AM_RANGE(0x6000, 0xffff) AM_RAM AM_REGION("maincpu", 0x6000)
9095/*
9196   base memory map:
9297   AM_RANGE(0x0000, 0x1fff) AM_ROM
9398   AM_RANGE(0x2000, 0x5fff) AM_ROM //cart
9499   AM_RANGE(0x6000, 0xafff) AM_RAM //ext ram
95   AM_RANGE(0xb000, 0xefff) AM_RAM //work ram
96   AM_RANGE(0xf000, 0xffff) AM_NOP
100   AM_RANGE(0xb000, 0xebff) AM_RAM //work ram
101   AM_RANGE(0xec00, 0xffff) AM_RAM //bitmap vram (banked)
97102*/
98103ADDRESS_MAP_END
99104
r8610r8611
258263    MDRV_VIDEO_START(rx78)
259264    MDRV_VIDEO_UPDATE(rx78)
260265
266   MDRV_CARTSLOT_ADD("cart")
267   MDRV_CARTSLOT_EXTENSION_LIST("rom")
268   MDRV_CARTSLOT_NOT_MANDATORY
269
261270   MDRV_SPEAKER_STANDARD_MONO("mono")
262271
263272   MDRV_SOUND_ADD("sn1", SN76489A, 1996800) // unknown clock / divider
r8610r8611
268277ROM_START( rx78 )
269278    ROM_REGION( 0x10000, "maincpu", ROMREGION_ERASEFF )
270279   ROM_LOAD( "ipl.rom", 0x0000, 0x2000, CRC(a194ea53) SHA1(ba39e73e6eb7cbb8906fff1f81a98964cd62af0d))
280
281   ROM_REGION( 0x4000, "cart_img", ROMREGION_ERASEFF )
282   ROM_CART_LOAD("cart", 0x0000, 0x4000, ROM_OPTIONAL | ROM_NOMIRROR)
271283ROM_END
272284
273285/* Driver */

Previous 509070 RevisionsNext 50


© 1998-2010 The MESS Team