mirror of
https://github.com/holub/mame
synced 2025-05-24 14:56:21 +03:00
New games added or promoted from NOT_WORKING status
--------------------------------------------------- Himeshikibu (Japan) [Uki]
This commit is contained in:
parent
356367ae5b
commit
e03f020244
2
.gitattributes
vendored
2
.gitattributes
vendored
@ -1569,6 +1569,7 @@ src/mame/drivers/hexion.c svneol=native#text/plain
|
|||||||
src/mame/drivers/higemaru.c svneol=native#text/plain
|
src/mame/drivers/higemaru.c svneol=native#text/plain
|
||||||
src/mame/drivers/highvdeo.c svneol=native#text/plain
|
src/mame/drivers/highvdeo.c svneol=native#text/plain
|
||||||
src/mame/drivers/hikaru.c svneol=native#text/plain
|
src/mame/drivers/hikaru.c svneol=native#text/plain
|
||||||
|
src/mame/drivers/himesiki.c svneol=native#text/plain
|
||||||
src/mame/drivers/hitme.c svneol=native#text/plain
|
src/mame/drivers/hitme.c svneol=native#text/plain
|
||||||
src/mame/drivers/hnayayoi.c svneol=native#text/plain
|
src/mame/drivers/hnayayoi.c svneol=native#text/plain
|
||||||
src/mame/drivers/hng64.c svneol=native#text/plain
|
src/mame/drivers/hng64.c svneol=native#text/plain
|
||||||
@ -3046,6 +3047,7 @@ src/mame/video/hd63484.h svneol=native#text/plain
|
|||||||
src/mame/video/hexa.c svneol=native#text/plain
|
src/mame/video/hexa.c svneol=native#text/plain
|
||||||
src/mame/video/hexion.c svneol=native#text/plain
|
src/mame/video/hexion.c svneol=native#text/plain
|
||||||
src/mame/video/higemaru.c svneol=native#text/plain
|
src/mame/video/higemaru.c svneol=native#text/plain
|
||||||
|
src/mame/video/himesiki.c svneol=native#text/plain
|
||||||
src/mame/video/hnayayoi.c svneol=native#text/plain
|
src/mame/video/hnayayoi.c svneol=native#text/plain
|
||||||
src/mame/video/hng64.c svneol=native#text/plain
|
src/mame/video/hng64.c svneol=native#text/plain
|
||||||
src/mame/video/holeland.c svneol=native#text/plain
|
src/mame/video/holeland.c svneol=native#text/plain
|
||||||
|
268
src/mame/drivers/himesiki.c
Normal file
268
src/mame/drivers/himesiki.c
Normal file
@ -0,0 +1,268 @@
|
|||||||
|
/*****************************************************************************
|
||||||
|
|
||||||
|
Himeshikibu (C) 1989 Hi-Soft
|
||||||
|
|
||||||
|
Driver by Uki
|
||||||
|
|
||||||
|
*****************************************************************************/
|
||||||
|
|
||||||
|
#include "driver.h"
|
||||||
|
#include "deprecat.h"
|
||||||
|
#include "cpu/z80/z80.h"
|
||||||
|
#include "sound/2203intf.h"
|
||||||
|
|
||||||
|
#define MCLK XTAL_12MHz
|
||||||
|
|
||||||
|
VIDEO_START( himesiki );
|
||||||
|
VIDEO_UPDATE( himesiki );
|
||||||
|
|
||||||
|
WRITE8_HANDLER( himesiki_bg_ram_w );
|
||||||
|
WRITE8_HANDLER( himesiki_scrollx_w );
|
||||||
|
WRITE8_HANDLER( himesiki_flip_w );
|
||||||
|
|
||||||
|
extern UINT8 *himesiki_bg_ram;
|
||||||
|
|
||||||
|
static WRITE8_HANDLER( himesiki_rombank_w )
|
||||||
|
{
|
||||||
|
UINT8 *ROM = memory_region(space->machine, "main");
|
||||||
|
memory_set_bankptr(space->machine, 1, &ROM[0x10000+0x800*(data & 8)]);
|
||||||
|
|
||||||
|
if (data & 0xf7)
|
||||||
|
logerror("p06_w %02x\n",data);
|
||||||
|
}
|
||||||
|
|
||||||
|
static WRITE8_HANDLER( himesiki_sound_w )
|
||||||
|
{
|
||||||
|
soundlatch_w(space, offset, data);
|
||||||
|
cpu_set_input_line(space->machine->cpu[1], INPUT_LINE_NMI, PULSE_LINE);
|
||||||
|
}
|
||||||
|
|
||||||
|
/****************************************************************************/
|
||||||
|
|
||||||
|
static ADDRESS_MAP_START( himesiki_prm0, ADDRESS_SPACE_PROGRAM, 8 )
|
||||||
|
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||||
|
AM_RANGE(0x8000, 0x9fff) AM_RAM
|
||||||
|
AM_RANGE(0xa000, 0xa7ff) AM_RAM AM_BASE(&spriteram) AM_SIZE(&spriteram_size)
|
||||||
|
AM_RANGE(0xa800, 0xafff) AM_RAM AM_WRITE(paletteram_xRRRRRGGGGGBBBBB_le_w) AM_BASE(&paletteram)
|
||||||
|
AM_RANGE(0xb000, 0xbfff) AM_RAM AM_WRITE(himesiki_bg_ram_w) AM_BASE(&himesiki_bg_ram)
|
||||||
|
AM_RANGE(0xc000, 0xffff) AM_ROMBANK(1)
|
||||||
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
|
static ADDRESS_MAP_START( himesiki_iom0, ADDRESS_SPACE_IO, 8 )
|
||||||
|
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||||
|
AM_RANGE(0x00, 0x00) AM_READ(input_port_2_r)
|
||||||
|
AM_RANGE(0x01, 0x01) AM_READ(input_port_3_r)
|
||||||
|
AM_RANGE(0x02, 0x02) AM_READ(input_port_4_r)
|
||||||
|
AM_RANGE(0x03, 0x03) AM_WRITENOP // 8255 cw
|
||||||
|
AM_RANGE(0x04, 0x04) AM_READ(input_port_0_r)
|
||||||
|
AM_RANGE(0x05, 0x05) AM_READ(input_port_1_r)
|
||||||
|
AM_RANGE(0x06, 0x06) AM_WRITE(himesiki_rombank_w)
|
||||||
|
AM_RANGE(0x07, 0x07) AM_WRITENOP // 8255 cw
|
||||||
|
AM_RANGE(0x08, 0x08) AM_WRITE(himesiki_flip_w)
|
||||||
|
AM_RANGE(0x09, 0x0a) AM_WRITE(himesiki_scrollx_w)
|
||||||
|
AM_RANGE(0x0b, 0x0b) AM_WRITE(himesiki_sound_w)
|
||||||
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
|
static ADDRESS_MAP_START( himesiki_prm1, ADDRESS_SPACE_PROGRAM, 8 )
|
||||||
|
AM_RANGE(0x0000, 0x7fff) AM_ROM
|
||||||
|
AM_RANGE(0xf800, 0xffff) AM_RAM
|
||||||
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
|
static ADDRESS_MAP_START( himesiki_iom1, ADDRESS_SPACE_IO, 8 )
|
||||||
|
ADDRESS_MAP_GLOBAL_MASK(0xff)
|
||||||
|
AM_RANGE(0x00, 0x00) AM_READWRITE(ym2203_status_port_0_r,ym2203_control_port_0_w)
|
||||||
|
AM_RANGE(0x01, 0x01) AM_READWRITE(ym2203_read_port_0_r,ym2203_write_port_0_w)
|
||||||
|
AM_RANGE(0x04, 0x04) AM_READ(soundlatch_r)
|
||||||
|
ADDRESS_MAP_END
|
||||||
|
|
||||||
|
/****************************************************************************/
|
||||||
|
|
||||||
|
INPUT_PORTS_START( himesiki )
|
||||||
|
PORT_START("DSW1") /* DSW1 (0) */
|
||||||
|
PORT_DIPNAME( 0x01, 0x00, DEF_STR( Demo_Sounds ) ) PORT_DIPLOCATION("SW1:1")
|
||||||
|
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x02, 0x02, "1-2" ) PORT_DIPLOCATION("SW1:2")
|
||||||
|
PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x04, 0x04, "1-3" ) PORT_DIPLOCATION("SW1:3")
|
||||||
|
PORT_DIPSETTING( 0x04, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x08, 0x08, DEF_STR( Cabinet ) ) PORT_DIPLOCATION("SW1:4")
|
||||||
|
PORT_DIPSETTING( 0x08, DEF_STR( Upright ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( Cocktail ) )
|
||||||
|
PORT_DIPNAME( 0x10, 0x10, "1-5" ) PORT_DIPLOCATION("SW1:5")
|
||||||
|
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x20, 0x20, "1-6" ) PORT_DIPLOCATION("SW1:6")
|
||||||
|
PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x40, 0x40, DEF_STR( Flip_Screen ) ) PORT_DIPLOCATION("SW1:7")
|
||||||
|
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_SERVICE_DIPLOC(0x80, IP_ACTIVE_LOW, "SW1:8" )
|
||||||
|
|
||||||
|
PORT_START("DSW2") /* DSW2 (1) */
|
||||||
|
PORT_DIPNAME( 0x01, 0x01, "2-1" ) PORT_DIPLOCATION("SW2:1")
|
||||||
|
PORT_DIPSETTING( 0x01, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x02, 0x02, "2-2" ) PORT_DIPLOCATION("SW2:2")
|
||||||
|
PORT_DIPSETTING( 0x02, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x04, 0x04, "2-3" ) PORT_DIPLOCATION("SW2:3")
|
||||||
|
PORT_DIPSETTING( 0x04, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x08, 0x08, "2-4" ) PORT_DIPLOCATION("SW2:4")
|
||||||
|
PORT_DIPSETTING( 0x08, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x10, 0x10, "2-5" ) PORT_DIPLOCATION("SW2:5")
|
||||||
|
PORT_DIPSETTING( 0x10, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x20, 0x20, "2-6" ) PORT_DIPLOCATION("SW2:6")
|
||||||
|
PORT_DIPSETTING( 0x20, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x40, 0x40, "2-7" ) PORT_DIPLOCATION("SW2:7")
|
||||||
|
PORT_DIPSETTING( 0x40, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
PORT_DIPNAME( 0x80, 0x80, "2-8" ) PORT_DIPLOCATION("SW2:8")
|
||||||
|
PORT_DIPSETTING( 0x80, DEF_STR( Off ) )
|
||||||
|
PORT_DIPSETTING( 0x00, DEF_STR( On ) )
|
||||||
|
|
||||||
|
PORT_START("1P") /* 1P (2) */
|
||||||
|
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP )
|
||||||
|
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN )
|
||||||
|
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT )
|
||||||
|
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT )
|
||||||
|
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 )
|
||||||
|
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 )
|
||||||
|
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 )
|
||||||
|
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||||
|
|
||||||
|
PORT_START("2P") /* 2P (3) */
|
||||||
|
PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_JOYSTICK_UP ) PORT_PLAYER(2)
|
||||||
|
PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN ) PORT_PLAYER(2)
|
||||||
|
PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT ) PORT_PLAYER(2)
|
||||||
|
PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT ) PORT_PLAYER(2)
|
||||||
|
PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_BUTTON1 ) PORT_PLAYER(2)
|
||||||
|
PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_BUTTON2 ) PORT_PLAYER(2)
|
||||||
|
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_BUTTON3 ) PORT_PLAYER(2)
|
||||||
|
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||||
|
|
||||||
|
PORT_START("OTHERS") /* OTHERS (4) */
|
||||||
|
PORT_BIT(0x01, IP_ACTIVE_LOW, IPT_COIN1 )
|
||||||
|
PORT_BIT(0x02, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||||
|
PORT_BIT(0x04, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||||
|
PORT_BIT(0x08, IP_ACTIVE_LOW, IPT_SERVICE1 ) // coin?
|
||||||
|
PORT_BIT(0x10, IP_ACTIVE_LOW, IPT_COIN2 ) // service?
|
||||||
|
PORT_BIT(0x20, IP_ACTIVE_LOW, IPT_START1 )
|
||||||
|
PORT_BIT(0x40, IP_ACTIVE_LOW, IPT_START2 )
|
||||||
|
PORT_BIT(0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
|
||||||
|
INPUT_PORTS_END
|
||||||
|
|
||||||
|
/****************************************************************************/
|
||||||
|
|
||||||
|
static const gfx_layout layout1 =
|
||||||
|
{
|
||||||
|
8,8,
|
||||||
|
RGN_FRAC(1,1),
|
||||||
|
4,
|
||||||
|
{ 0,1,2,3 },
|
||||||
|
{ 4,0,12,8,20,16,28,24 },
|
||||||
|
{ STEP8(0,32) },
|
||||||
|
8*8*4
|
||||||
|
};
|
||||||
|
|
||||||
|
static const gfx_layout layout2 =
|
||||||
|
{
|
||||||
|
32,32,
|
||||||
|
RGN_FRAC(1,1),
|
||||||
|
4,
|
||||||
|
{ 0,1,2,3 },
|
||||||
|
{ 4,0,12,8,20,16,28,24,36,32,44,40,52,48,60,56, 68,64,76,72,84,80,92,88,100,96,108,104,116,112,124,120 },
|
||||||
|
{ STEP32(0,128) },
|
||||||
|
32*32*4
|
||||||
|
};
|
||||||
|
|
||||||
|
static const gfx_layout layout3 =
|
||||||
|
{
|
||||||
|
16,16,
|
||||||
|
RGN_FRAC(1,1),
|
||||||
|
4,
|
||||||
|
{ 0,1,2,3 },
|
||||||
|
{ 4,0,12,8,20,16,28,24,36,32,44,40,52,48,60,56 },
|
||||||
|
{ STEP16(0,64) },
|
||||||
|
16*16*4
|
||||||
|
};
|
||||||
|
|
||||||
|
static GFXDECODE_START( himesiki )
|
||||||
|
GFXDECODE_ENTRY( "bg", 0, layout1, 0x000, 16 )
|
||||||
|
GFXDECODE_ENTRY( "sprites_1", 0, layout2, 0x200, 16 )
|
||||||
|
GFXDECODE_ENTRY( "sprites_2", 0, layout3, 0x200, 16 )
|
||||||
|
GFXDECODE_END
|
||||||
|
|
||||||
|
|
||||||
|
static MACHINE_DRIVER_START( himesiki )
|
||||||
|
|
||||||
|
/* basic machine hardware */
|
||||||
|
MDRV_CPU_ADD("main", Z80, MCLK/2) /* 6.000 MHz */
|
||||||
|
MDRV_CPU_PROGRAM_MAP(himesiki_prm0,0)
|
||||||
|
MDRV_CPU_IO_MAP(himesiki_iom0,0)
|
||||||
|
MDRV_CPU_VBLANK_INT("main", irq0_line_hold)
|
||||||
|
|
||||||
|
MDRV_CPU_ADD("sub", Z80, MCLK/3) /* 4.000 MHz */
|
||||||
|
MDRV_CPU_PROGRAM_MAP(himesiki_prm1,0)
|
||||||
|
MDRV_CPU_IO_MAP(himesiki_iom1,0)
|
||||||
|
|
||||||
|
/* video hardware */
|
||||||
|
MDRV_SCREEN_ADD("main", RASTER)
|
||||||
|
MDRV_SCREEN_REFRESH_RATE(60)
|
||||||
|
MDRV_SCREEN_VBLANK_TIME(ATTOSECONDS_IN_USEC(2500))
|
||||||
|
MDRV_SCREEN_FORMAT(BITMAP_FORMAT_INDEXED16)
|
||||||
|
MDRV_SCREEN_SIZE(32*8, 32*8)
|
||||||
|
MDRV_SCREEN_VISIBLE_AREA(0*8, 32*8-1, 0*8, 24*8-1)
|
||||||
|
MDRV_GFXDECODE(himesiki)
|
||||||
|
MDRV_PALETTE_LENGTH(1024)
|
||||||
|
|
||||||
|
MDRV_VIDEO_START(himesiki)
|
||||||
|
MDRV_VIDEO_UPDATE(himesiki)
|
||||||
|
|
||||||
|
/* sound hardware */
|
||||||
|
MDRV_SPEAKER_STANDARD_MONO("mono")
|
||||||
|
MDRV_SOUND_ADD("ym2203", YM2203, MCLK/4)
|
||||||
|
MDRV_SOUND_ROUTE(0, "mono", 0.10)
|
||||||
|
MDRV_SOUND_ROUTE(1, "mono", 0.10)
|
||||||
|
MDRV_SOUND_ROUTE(2, "mono", 0.10)
|
||||||
|
MDRV_SOUND_ROUTE(3, "mono", 0.50)
|
||||||
|
|
||||||
|
MACHINE_DRIVER_END
|
||||||
|
|
||||||
|
/****************************************************************************/
|
||||||
|
|
||||||
|
ROM_START( himesiki )
|
||||||
|
ROM_REGION( 0x018000, "main", 0 ) /* z80 */
|
||||||
|
ROM_LOAD( "1.1k", 0x00000, 0x08000, CRC(fb4604b3) SHA1(e8155bbafb881125e1bf9a04808d6a6546887e90) )
|
||||||
|
ROM_LOAD( "2.1g", 0x10000, 0x08000, CRC(0c30ded1) SHA1(0ad67115fa15d0b6261a278a946a6d46c06430ef) )
|
||||||
|
|
||||||
|
ROM_REGION( 0x010000, "sub", 0 ) /* z80 */
|
||||||
|
ROM_LOAD( "5.6n", 0x00000, 0x08000, CRC(b1214ac7) SHA1(ee5459c28d9c3c2eb3467261716b1259ec486534) )
|
||||||
|
|
||||||
|
ROM_REGION( 0x020000, "bg", ROMREGION_DISPOSE ) /* bg */
|
||||||
|
ROM_LOAD( "3.5f", 0x000000, 0x010000, CRC(73843e60) SHA1(0d8a397d8798e15f3fa7bf7a83e4c2ee44f6fa86) )
|
||||||
|
ROM_LOAD( "4.5d", 0x010000, 0x010000, CRC(443a3164) SHA1(08aa002214251a870581a01d775f497dd390957c) )
|
||||||
|
|
||||||
|
ROM_REGION( 0x060000, "sprites_1", ROMREGION_DISPOSE ) /* sprites */
|
||||||
|
ROM_LOAD16_BYTE( "6.1a", 0x000000, 0x010000, CRC(14989c22) SHA1(fe0c31df10237294ea8ef0ab8965ba5bb25113a2) )
|
||||||
|
ROM_LOAD16_BYTE( "7.1c", 0x000001, 0x010000, CRC(cec56e16) SHA1(836ff413301044313fdf7af5d304c145137b898a) )
|
||||||
|
ROM_LOAD16_BYTE( "8.2a", 0x020000, 0x010000, CRC(44ba127e) SHA1(d756b6c3075d75287f9c8be662c1eab02f4245a3) )
|
||||||
|
ROM_LOAD16_BYTE( "9.2c", 0x020001, 0x010000, CRC(0dda724a) SHA1(2b064b1d657f896e8385f17def9e4ffc0802bf97) )
|
||||||
|
ROM_LOAD16_BYTE( "10.4a", 0x040000, 0x010000, CRC(0adda8d1) SHA1(dfee2c7921fdc972b4e95fdf89520f74a4e8b4ee) )
|
||||||
|
ROM_LOAD16_BYTE( "11.4c", 0x040001, 0x010000, CRC(aa032946) SHA1(bd8900e4a22580e3bfe33b8164909db19bb07a8f) )
|
||||||
|
|
||||||
|
ROM_REGION( 0x040000, "sprites_2", ROMREGION_DISPOSE ) /* sprites */
|
||||||
|
ROM_LOAD16_BYTE( "13.9e", 0x000000, 0x010000, CRC(43102682) SHA1(0d4bde8bece0cbc6c06071aa8ad210a0636d862f) )
|
||||||
|
ROM_LOAD16_BYTE( "12.9c", 0x000001, 0x010000, CRC(19c8f9f4) SHA1(b14c8a6b94fd474be375e7a6a03d7f4517da2247) )
|
||||||
|
ROM_LOAD16_BYTE( "15.8e", 0x020000, 0x010000, CRC(2630d394) SHA1(b2e9e836b1f053fce3212912c53d3cdca3372439) )
|
||||||
|
ROM_LOAD16_BYTE( "14.8c", 0x020001, 0x010000, CRC(8103a207) SHA1(0dde8a0aaf2618d9c1589f35841db210439d0388) )
|
||||||
|
ROM_END
|
||||||
|
|
||||||
|
GAME( 1989, himesiki, 0, himesiki, himesiki, 0, ROT90, "Hi-Soft", "Himeshikibu (Japan)", 0 )
|
@ -1579,6 +1579,7 @@ $(MAMEOBJ)/misc.a: \
|
|||||||
$(DRIVERS)/gunpey.o \
|
$(DRIVERS)/gunpey.o \
|
||||||
$(DRIVERS)/hexa.o $(VIDEO)/hexa.o \
|
$(DRIVERS)/hexa.o $(VIDEO)/hexa.o \
|
||||||
$(DRIVERS)/highvdeo.o \
|
$(DRIVERS)/highvdeo.o \
|
||||||
|
$(DRIVERS)/himesiki.o $(VIDEO)/himesiki.o \
|
||||||
$(DRIVERS)/homedata.o $(VIDEO)/homedata.o \
|
$(DRIVERS)/homedata.o $(VIDEO)/homedata.o \
|
||||||
$(DRIVERS)/hotblock.o \
|
$(DRIVERS)/hotblock.o \
|
||||||
$(DRIVERS)/ilpag.o \
|
$(DRIVERS)/ilpag.o \
|
||||||
|
@ -8054,10 +8054,10 @@ Other Sun games
|
|||||||
DRIVER( fredmemc ) /* (c) 1994 Coastal Amusements */
|
DRIVER( fredmemc ) /* (c) 1994 Coastal Amusements */
|
||||||
DRIVER( fredmesp ) /* (c) 1994 Coastal Amusements */
|
DRIVER( fredmesp ) /* (c) 1994 Coastal Amusements */
|
||||||
DRIVER( cecmatch ) /* (c) 1993 Coastal Amusements */
|
DRIVER( cecmatch ) /* (c) 1993 Coastal Amusements */
|
||||||
DRIVER( f15se ) /* (c) 1991 Microprose */
|
DRIVER( f15se ) /* (c) 1991 Microprose Games Inc. */
|
||||||
DRIVER( f15se21 ) /* (c) 1991 Microprose */
|
DRIVER( f15se21 ) /* (c) 1991 Microprose Games Inc. */
|
||||||
DRIVER( botss ) /* (c) 1992 Microprose */
|
DRIVER( botss ) /* (c) 1992 Microprose Games Inc. */
|
||||||
DRIVER( stankatk ) /* (c) 1992 Microprose */
|
DRIVER( stankatk ) /* (c) 1992 Microprose Games Inc. */
|
||||||
DRIVER( dynadice ) /* ? */
|
DRIVER( dynadice ) /* ? */
|
||||||
DRIVER( ssingles ) /* Yachiyo? */
|
DRIVER( ssingles ) /* Yachiyo? */
|
||||||
DRIVER( tcl ) /* (c) 1995 Uniwang */
|
DRIVER( tcl ) /* (c) 1995 Uniwang */
|
||||||
@ -8550,4 +8550,7 @@ Other Sun games
|
|||||||
DRIVER( buster ) /* (c) 1987 Marian Electronics Ltd. */
|
DRIVER( buster ) /* (c) 1987 Marian Electronics Ltd. */
|
||||||
DRIVER( spielbud ) /* (c) 1985 ADP */
|
DRIVER( spielbud ) /* (c) 1985 ADP */
|
||||||
|
|
||||||
|
/* Hi-Soft */
|
||||||
|
DRIVER( himesiki ) /* (c) 1989 Hi-Soft */
|
||||||
|
|
||||||
#endif /* DRIVER_RECURSIVE */
|
#endif /* DRIVER_RECURSIVE */
|
||||||
|
130
src/mame/video/himesiki.c
Normal file
130
src/mame/video/himesiki.c
Normal file
@ -0,0 +1,130 @@
|
|||||||
|
/******************************************************************************
|
||||||
|
|
||||||
|
Himeshikibu (C) 1989 Hi-Soft
|
||||||
|
|
||||||
|
Video hardware
|
||||||
|
driver by Uki
|
||||||
|
|
||||||
|
******************************************************************************/
|
||||||
|
|
||||||
|
#include "driver.h"
|
||||||
|
#include "video/generic.h"
|
||||||
|
|
||||||
|
UINT8 *himesiki_bg_ram;
|
||||||
|
static tilemap *himesiki_bg_tilemap;
|
||||||
|
|
||||||
|
static int himesiki_scrollx[1];
|
||||||
|
static int himesiki_flip;
|
||||||
|
|
||||||
|
|
||||||
|
static TILE_GET_INFO( get_bg_tile_info )
|
||||||
|
{
|
||||||
|
int code = himesiki_bg_ram[tile_index*2] + himesiki_bg_ram[tile_index*2+1]*0x100 ;
|
||||||
|
int col = code >> 12;
|
||||||
|
|
||||||
|
code &= 0xfff;
|
||||||
|
|
||||||
|
SET_TILE_INFO(0, code, col, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
VIDEO_START( himesiki )
|
||||||
|
{
|
||||||
|
himesiki_bg_ram = auto_malloc(0x1000);
|
||||||
|
himesiki_bg_tilemap = tilemap_create( machine, get_bg_tile_info,tilemap_scan_rows,8,8,64,32 );
|
||||||
|
}
|
||||||
|
|
||||||
|
WRITE8_HANDLER( himesiki_bg_ram_w )
|
||||||
|
{
|
||||||
|
himesiki_bg_ram[offset] = data;
|
||||||
|
tilemap_mark_tile_dirty( himesiki_bg_tilemap, offset / 2 );
|
||||||
|
}
|
||||||
|
|
||||||
|
WRITE8_HANDLER( himesiki_scrollx_w )
|
||||||
|
{
|
||||||
|
himesiki_scrollx[offset] = data;
|
||||||
|
}
|
||||||
|
|
||||||
|
WRITE8_HANDLER( himesiki_flip_w )
|
||||||
|
{
|
||||||
|
himesiki_flip = data & 0xc0;
|
||||||
|
flip_screen_set(space->machine, himesiki_flip);
|
||||||
|
|
||||||
|
if (data & 0x3f)
|
||||||
|
logerror("p08_w %02x\n",data);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void himesiki_draw_sprites(running_machine *machine, bitmap_t *bitmap, const rectangle *cliprect)
|
||||||
|
{
|
||||||
|
int offs;
|
||||||
|
|
||||||
|
for (offs = 0x100; offs<0x160; offs+=4)
|
||||||
|
{
|
||||||
|
int attr = spriteram[offs + 1];
|
||||||
|
int code = spriteram[offs + 0] | (attr & 3) << 8;
|
||||||
|
int x = spriteram[offs + 3] | (attr & 8) << 5;
|
||||||
|
int y = spriteram[offs + 2];
|
||||||
|
|
||||||
|
int col = (attr & 0xf0) >> 4;
|
||||||
|
int fx = attr & 4;
|
||||||
|
int fy = 0;
|
||||||
|
|
||||||
|
if (x > 0x1e0)
|
||||||
|
x -= 0x200;
|
||||||
|
|
||||||
|
if (himesiki_flip)
|
||||||
|
{
|
||||||
|
y = (y + 33) & 0xff;
|
||||||
|
x = 224-x;
|
||||||
|
fx ^= 4;
|
||||||
|
fy = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
y = 257-y;
|
||||||
|
if (y > 0xc0)
|
||||||
|
y -= 0x100;
|
||||||
|
}
|
||||||
|
|
||||||
|
drawgfx(bitmap,machine->gfx[1],code,col,fx,fy,x,y,cliprect,TRANSPARENCY_PEN,15);
|
||||||
|
}
|
||||||
|
|
||||||
|
for (offs = 0; offs<0x100; offs+=4)
|
||||||
|
{
|
||||||
|
int attr = spriteram[offs + 1];
|
||||||
|
int code = spriteram[offs + 0] | (attr & 7) << 8;
|
||||||
|
int x = spriteram[offs + 3] | (attr & 8) << 5;
|
||||||
|
int y = spriteram[offs + 2];
|
||||||
|
|
||||||
|
int col = (attr & 0xf0) >> 4;
|
||||||
|
int f = 0;
|
||||||
|
|
||||||
|
if (x > 0x1e0)
|
||||||
|
x -= 0x200;
|
||||||
|
|
||||||
|
if (himesiki_flip)
|
||||||
|
{
|
||||||
|
y += 49;
|
||||||
|
x = 240-x;
|
||||||
|
f = 1;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
y = 257-y;
|
||||||
|
|
||||||
|
y &= 0xff;
|
||||||
|
if (y > 0xf0)
|
||||||
|
y -= 0x100;
|
||||||
|
|
||||||
|
drawgfx(bitmap,machine->gfx[2],code,col,f,f,x,y,cliprect,TRANSPARENCY_PEN,15);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
VIDEO_UPDATE( himesiki )
|
||||||
|
{
|
||||||
|
int x = -(himesiki_scrollx[0] << 8 | himesiki_scrollx[1]) & 0x1ff;
|
||||||
|
tilemap_set_scrolldx( himesiki_bg_tilemap, x, x);
|
||||||
|
|
||||||
|
tilemap_draw(bitmap, cliprect, himesiki_bg_tilemap, TILEMAP_DRAW_OPAQUE, 0);
|
||||||
|
himesiki_draw_sprites(screen->machine, bitmap, cliprect);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user