mirror of
https://github.com/mamedev/mame.git
synced 2024-11-18 10:06:19 +01:00
yshi_nand_table_check success, but code is not transferred correctly yet.
This commit is contained in:
parent
bf505cd350
commit
ebffa2ee9c
1 changed files with 20 additions and 1 deletions
|
@ -357,7 +357,7 @@ READ32_HANDLER( nand_data_r )
|
|||
{
|
||||
UINT32 data = nand_read2( nand_address * 2 );
|
||||
|
||||
printf( "data<-%08x (%08x)\n", data, nand_address );
|
||||
/* printf( "data<-%08x (%08x)\n", data, nand_address ); */
|
||||
nand_address++;
|
||||
|
||||
return data;
|
||||
|
@ -373,6 +373,22 @@ static void nand_copy( UINT32 *dst, UINT32 address, int len )
|
|||
}
|
||||
}
|
||||
|
||||
UINT32 block[ 0x1ff ];
|
||||
|
||||
WRITE32_HANDLER( nand_block_w )
|
||||
{
|
||||
COMBINE_DATA( &block[ offset ] );
|
||||
}
|
||||
|
||||
READ32_HANDLER( nand_block_r )
|
||||
{
|
||||
return block[ offset ];
|
||||
}
|
||||
|
||||
WRITE32_HANDLER( watchdog_w )
|
||||
{
|
||||
}
|
||||
|
||||
static void memn_driver_init( running_machine *machine )
|
||||
{
|
||||
UINT8 *BIOS = (UINT8 *)machine->region( "user1" )->base();
|
||||
|
@ -387,6 +403,9 @@ static void memn_driver_init( running_machine *machine )
|
|||
memory_install_write32_handler( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x1f430000, 0x1f430003, 0, 0, nand_address3_w );
|
||||
memory_install_write32_handler( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x1f440000, 0x1f440003, 0, 0, nand_address4_w );
|
||||
memory_install_read32_handler( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x1f450000, 0x1f450003, 0, 0, nand_data_r );
|
||||
memory_install_write32_handler( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0x1fb60000, 0x1fb60003, 0, 0, watchdog_w );
|
||||
memory_install_write32_handler( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xbf500000, 0xbf5007d7, 0, 0, nand_block_w );
|
||||
memory_install_read32_handler( cputag_get_address_space(machine, "maincpu", ADDRESS_SPACE_PROGRAM), 0xbf500000, 0xbf5007d7, 0, 0, nand_block_r );
|
||||
|
||||
psx_driver_init(machine);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue