mirror of
https://github.com/holub/mame
synced 2025-06-04 03:46:29 +03:00
non working banking based on guesswork that didn't pay off, but might help someone else.
This commit is contained in:
parent
f1eb7c07f6
commit
24a4fa3c9c
@ -267,6 +267,11 @@ Utyuu Daisakusen Chocovader Contactee CVC1 Ver.A KC022A
|
|||||||
#include "cpu/mips/psx.h"
|
#include "cpu/mips/psx.h"
|
||||||
#include "includes/psx.h"
|
#include "includes/psx.h"
|
||||||
|
|
||||||
|
WRITE32_HANDLER( namcos10_bank_w )
|
||||||
|
{
|
||||||
|
memory_set_bank( space->machine, "bank1", data & 0xf );
|
||||||
|
}
|
||||||
|
|
||||||
class namcos10_state : public psx_state
|
class namcos10_state : public psx_state
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
@ -276,6 +281,8 @@ public:
|
|||||||
|
|
||||||
static ADDRESS_MAP_START( namcos10_map, ADDRESS_SPACE_PROGRAM, 32 )
|
static ADDRESS_MAP_START( namcos10_map, ADDRESS_SPACE_PROGRAM, 32 )
|
||||||
AM_RANGE(0x00000000, 0x00ffffff) AM_RAM AM_SHARE("share1") /* ram */
|
AM_RANGE(0x00000000, 0x00ffffff) AM_RAM AM_SHARE("share1") /* ram */
|
||||||
|
AM_RANGE(0x1f300000, 0x1f300003) AM_WRITE(namcos10_bank_w)
|
||||||
|
AM_RANGE(0x1f400000, 0x1f7fffff) AM_ROMBANK("bank1")
|
||||||
AM_RANGE(0x1f800000, 0x1f8003ff) AM_RAM /* scratchpad */
|
AM_RANGE(0x1f800000, 0x1f8003ff) AM_RAM /* scratchpad */
|
||||||
AM_RANGE(0x1f801000, 0x1f801007) AM_WRITENOP
|
AM_RANGE(0x1f801000, 0x1f801007) AM_WRITENOP
|
||||||
AM_RANGE(0x1f801008, 0x1f80100b) AM_RAM /* ?? */
|
AM_RANGE(0x1f801008, 0x1f80100b) AM_RAM /* ?? */
|
||||||
@ -314,6 +321,7 @@ static void memcpy32le( UINT32 *dst, UINT8 *src, int len )
|
|||||||
static void memm_driver_init( running_machine *machine )
|
static void memm_driver_init( running_machine *machine )
|
||||||
{
|
{
|
||||||
psx_driver_init(machine);
|
psx_driver_init(machine);
|
||||||
|
memory_configure_bank( machine, "bank1", 0, 16, machine->region( "user2" )->base(), 4 * 1024 * 1024 );
|
||||||
}
|
}
|
||||||
|
|
||||||
static void memn_driver_init( running_machine *machine )
|
static void memn_driver_init( running_machine *machine )
|
||||||
|
Loading…
Reference in New Issue
Block a user