Previous 15994 Revisions Next

r1692 Monday 18th February, 2008 at 19:29:05 UTC by Wilbert Pol
[GAMEPOCK] Fixed cartridge loading.
[src/mess/drivers]gamepock.c

src/mess/drivers/gamepock.c
r1691r1692
5757MACHINE_DRIVER_END
5858
5959static DEVICE_INIT(gamepock_cart) {
60   memory_set_bankptr( 1, memory_region( REGION_CPU1 ) + 0x4000 );
60   memory_set_bankptr( 1, memory_region( REGION_USER1 ) );
6161   return INIT_PASS;
6262}
6363
64static TIMER_CALLBACK(gamepock_cart_enable) {
65   memory_set_bankptr( 1, memory_region( REGION_USER1 ) );
66}
67
6864static DEVICE_LOAD(gamepock_cart) {
6965   UINT8 *cart = memory_region( REGION_USER1 );
7066   int size = image_length( image );
r1691r1692
7470      return INIT_FAIL;
7571   }
7672
77   /* I do not yet how the cartridge gets enabled.
78     For now we will wait 1 second before enabling the cartridge */
79   timer_set( ATTOTIME_IN_SEC(1), NULL, 0, gamepock_cart_enable );
73   memory_set_bankptr( 1, memory_region( REGION_USER1 ) );
8074
8175   return INIT_PASS;
8276}
r1691r1692
9791SYSTEM_CONFIG_END
9892
9993ROM_START( gamepock )
100   ROM_REGION( 0xC000, REGION_CPU1, ROMREGION_ERASEFF )
94   ROM_REGION( 0x1000, REGION_CPU1, ROMREGION_ERASEFF )
10195   ROM_LOAD( "egpcboot.bin", 0x0000, 0x1000, CRC(ee1ea65d) SHA1(9c7731b5ead721d2cc7f7e2655c5fed9e56db8b0) )
10296   ROM_REGION( 0x8000, REGION_USER1, ROMREGION_ERASEFF )
10397ROM_END

Previous 15994 Revisions Next


© 1998-2018 The MESS Team