diff --git a/src/mame/drivers/yunsung8.c b/src/mame/drivers/yunsung8.c index 4142607d84b..317178a8e30 100644 --- a/src/mame/drivers/yunsung8.c +++ b/src/mame/drivers/yunsung8.c @@ -56,10 +56,10 @@ VIDEO_UPDATE( yunsung8 ); static MACHINE_RESET( yunsung8 ) { const address_space *space = cpu_get_address_space(machine->cpu[0], ADDRESS_SPACE_PROGRAM); - UINT8 *RAM = memory_region(machine, "main") + 0x24000; - - yunsung8_videoram_0 = RAM + 0x0000; // Ram is banked - yunsung8_videoram_1 = RAM + 0x2000; + UINT8* yunsung8_videoram = auto_malloc(0x4000); + + yunsung8_videoram_0 = yunsung8_videoram + 0x0000; // Ram is banked + yunsung8_videoram_1 = yunsung8_videoram + 0x2000; yunsung8_videobank_w(space,0,0); } @@ -345,6 +345,12 @@ static INPUT_PORTS_START( cannball ) PORT_DIPSETTING( 0x00, DEF_STR( On ) ) INPUT_PORTS_END +static INPUT_PORTS_START( cannbalv ) + PORT_INCLUDE(cannball) + PORT_MODIFY("SYSTEM") + PORT_BIT( 0x40, IP_ACTIVE_HIGH, IPT_SPECIAL ) // always activated, otherwise the game resets. a simple check for horizontal / vertical version of the game? +INPUT_PORTS_END + /*************************************************************************** Rock Tris ***************************************************************************/ @@ -561,11 +567,9 @@ OSC : 16.000 ROM_START( magix ) - ROM_REGION( 0x24000+0x4000, "main", 0 ) /* Main Z80 Code */ + ROM_REGION( 0x24000, "main", 0 ) /* Main Z80 Code */ ROM_LOAD( "yunsung8.07", 0x00000, 0x0c000, CRC(d4d0b68b) SHA1(d7e1fb57a14f8b822791b98cecc6d5a053a89e0f) ) ROM_CONTINUE( 0x10000, 0x14000 ) - /* $2000 bytes for bank 0 of video ram (text) */ - /* $2000 bytes for bank 1 of video ram (background) */ ROM_REGION( 0x24000, "audio", 0 ) /* Sound Z80 Code */ ROM_LOAD( "yunsung8.08", 0x00000, 0x0c000, CRC(6fd60be9) SHA1(87622dc2967842629e90a02b415bec86cc26cbc7) ) @@ -601,11 +605,9 @@ Cy7c384A ROM_START( cannball ) - ROM_REGION( 0x24000+0x4000, "main", 0 ) /* Main Z80 Code */ + ROM_REGION( 0x24000, "main", 0 ) /* Main Z80 Code */ ROM_LOAD( "cannball.07", 0x00000, 0x0c000, CRC(17db56b4) SHA1(032e3dbde0b0e315dcb5f2b31f57e75e78818f2d) ) ROM_CONTINUE( 0x10000, 0x14000 ) - /* $2000 bytes for bank 0 of video ram (text) */ - /* $2000 bytes for bank 1 of video ram (background) */ ROM_REGION( 0x24000, "audio", 0 ) /* Sound Z80 Code */ ROM_LOAD( "cannball.08", 0x00000, 0x0c000, CRC(11403875) SHA1(9f583bc4f08e7aef3fd0f3fe3f31cce1d226641a) ) @@ -623,6 +625,30 @@ ROM_START( cannball ) ROM_END + +ROM_START( cannbalv ) + + ROM_REGION( 0x24000, "main", 0 ) /* Main Z80 Code */ + ROM_LOAD( "yunsung1", 0x00000, 0x0c000, CRC(f7398b0d) SHA1(f2cdb9c4662cd325376d25ae9611f689605042db) ) + ROM_CONTINUE( 0x10000, 0x14000 ) + + ROM_REGION( 0x24000, "audio", 0 ) /* Sound Z80 Code */ + ROM_LOAD( "yunsung8", 0x00000, 0x0c000, CRC(11403875) SHA1(9f583bc4f08e7aef3fd0f3fe3f31cce1d226641a) ) + ROM_CONTINUE( 0x10000, 0x14000 ) + + ROM_REGION( 0x200000, "gfx1", ROMREGION_DISPOSE ) /* Background */ + ROM_LOAD( "yunsung7", 0x000000, 0x80000, CRC(a5f1a648) SHA1(7a5bf5bc0ad257ccb12104512e98dfb3525babfc) ) + ROM_LOAD( "yunsung6", 0x080000, 0x80000, CRC(8baa686e) SHA1(831c3e2864d262bf5429dca6653c83dc976e610e) ) + ROM_LOAD( "yunsung5", 0x100000, 0x80000, CRC(a7f2ce51) SHA1(81632aca067f2c8c45488266c4489d9af24fb552) ) + ROM_LOAD( "yunsung4", 0x180000, 0x80000, CRC(74bef793) SHA1(6208580ce747cec3d410ce3c71e07aa570b9121d) ) + + ROM_REGION( 0x40000, "gfx2", ROMREGION_DISPOSE ) /* Text */ + ROM_LOAD( "yunsung3", 0x00000, 0x20000, CRC(8217abbe) SHA1(1a459a816a1aa5b68858e39c4a21bd78ee78dcab) ) + ROM_LOAD( "yunsung2", 0x20000, 0x20000, CRC(76de1045) SHA1(a3845ee1874e6ec0ce26e6e73e4643243779e70d) ) + +ROM_END + + /*************************************************************************** Rock Tris by Yunsung @@ -645,11 +671,9 @@ they jumpered the first position) ROM_START( rocktris ) - ROM_REGION( 0x24000+0x4000, "main", 0 ) /* Main Z80 Code */ + ROM_REGION( 0x24000, "main", 0 ) /* Main Z80 Code */ ROM_LOAD( "cpu.bin", 0x00000, 0x0c000, CRC(46e3b79c) SHA1(81a587b9f986c4e39b1888ec6ed6b86d1469b9a0) ) ROM_CONTINUE( 0x10000, 0x14000 ) - /* $2000 bytes for bank 0 of video ram (text) */ - /* $2000 bytes for bank 1 of video ram (background) */ ROM_REGION( 0x24000, "audio", 0 ) /* Sound Z80 Code */ ROM_LOAD( "cpu2.bin", 0x00000, 0x0c000, CRC(3a78a4cf) SHA1(f643c7a217cbb71f3a03f1f4a16545c546332819) ) @@ -679,6 +703,7 @@ ROM_END ***************************************************************************/ -GAME( 1995, cannball, 0, yunsung8, cannball, 0, ROT0, "Yun Sung / Soft Vision", "Cannon Ball (Yun Sung)", GAME_IMPERFECT_SOUND ) -GAME( 1995, magix, 0, yunsung8, magix, 0, ROT0, "Yun Sung", "Magix / Rock", GAME_IMPERFECT_SOUND ) // Title: DSW -GAME( 1994?, rocktris, 0, yunsung8, rocktris, 0, ROT0, "Yun Sung", "Rock Tris", GAME_IMPERFECT_SOUND ) +GAME( 1995, cannball, 0, yunsung8, cannball, 0, ROT0, "Yun Sung / Soft Vision", "Cannon Ball (Yun Sung) (horizontal)", GAME_IMPERFECT_SOUND ) +GAME( 1995, cannbalv, cannball, yunsung8, cannbalv, 0, ROT270, "Yun Sung / T&K", "Cannon Ball (Yun Sung) (vertical)", GAME_IMPERFECT_SOUND ) +GAME( 1995, magix, 0, yunsung8, magix, 0, ROT0, "Yun Sung", "Magix / Rock", GAME_IMPERFECT_SOUND ) // Title: DSW +GAME( 1994?, rocktris, 0, yunsung8, rocktris, 0, ROT0, "Yun Sung", "Rock Tris", GAME_IMPERFECT_SOUND ) diff --git a/src/mame/mamedriv.c b/src/mame/mamedriv.c index 0338fe65482..b386aca804c 100644 --- a/src/mame/mamedriv.c +++ b/src/mame/mamedriv.c @@ -7269,6 +7269,7 @@ Other Sun games DRIVER( madball ) /* (c) 1998 Yun Sung */ DRIVER( madballn ) /* (c) 1998 Yun Sung */ DRIVER( cannball ) /* (c) 1995 Yun Sung / Soft Visio */ + DRIVER( cannbalv ) /* (c) 1995 Yun Sung / T&K */ DRIVER( magix ) /* (c) 1995 Yun Sung */ DRIVER( rocktris ) /* (c) 1994? Yun Sung */ DRIVER( magicbub ) /* (c) Yun Sung */