本文整理汇总了C++中STEP8函数的典型用法代码示例。如果您正苦于以下问题:C++ STEP8函数的具体用法?C++ STEP8怎么用?C++ STEP8使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了STEP8函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: draw_headlight
for (y = cliprect.min_y; y <= cliprect.max_y ; y++)
for (x = min_x; x <= max_x; x++)
if ((x >= cliprect.min_x) && (x <= cliprect.max_x))
bitmap.pix16(y, x) |= 8;
}
draw_headlight(screen.machine(), bitmap, cliprect, flip);
return 0;
}
static const UINT32 headlight_xoffset[] =
{
STEP8(0x78, 1),
STEP8(0x70, 1),
STEP8(0x68, 1),
STEP8(0x60, 1),
STEP8(0x58, 1),
STEP8(0x50, 1),
STEP8(0x48, 1),
STEP8(0x40, 1),
STEP8(0x38, 1),
STEP8(0x30, 1),
STEP8(0x28, 1),
STEP8(0x20, 1),
STEP8(0x18, 1),
STEP8(0x10, 1),
STEP8(0x08, 1),
STEP8(0x00, 1),
示例2: PORT_DIPSETTING
PORT_DIPSETTING( 0x00, DEF_STR( Off ) )
PORT_DIPSETTING( 0x40, DEF_STR( On ) )
PORT_SERVICE_DIPLOC( 0x80, IP_ACTIVE_LOW, "SW2:8" )
INPUT_PORTS_END
/* 16x16x4 tiles (made of four 8x8 tiles) */
static const gfx_layout layout_16x16x4_2 =
{
16,16,
RGN_FRAC(1,1),
4,
{ STEP4(0,1) },
{ STEP4(8*8*4*0 + 3*4, -4), STEP4(8*8*4*0 + 7*4, -4),
STEP4(8*8*4*1 + 3*4, -4), STEP4(8*8*4*1 + 7*4, -4) },
{ STEP8(8*8*4*0, 8*4), STEP8(8*8*4*2, 8*4) },
16*16*4
};
static const gfx_layout layout_16x16x4 =
{
16,16,
RGN_FRAC(1,1),
4,
{ STEP4(0,1) },
{ STEP8(8*8*4*0,4), STEP8(8*8*4*1,4) },
{ STEP8(8*8*4*0,8*4), STEP8(8*8*4*2,8*4) },
16*16*4
};
示例3: PORT_DIPSETTING
PORT_DIPSETTING( 0x10, "10K 30K+" )
PORT_DIPSETTING( 0x00, "20K 30K+" )
PORT_DIPUNKNOWN_DIPLOC( 0x20, 0x20, "SW2:6" )
PORT_DIPUNKNOWN_DIPLOC( 0x40, 0x40, "SW2:7" )
PORT_DIPUNKNOWN_DIPLOC( 0x80, 0x80, "SW2:8" )
INPUT_PORTS_END
static const gfx_layout layout_8x8x2 =
{
8,8,
RGN_FRAC(1,1),
2,
{ 0, 4 },
{ STEP4(0,1), STEP4(8,1) },
{ STEP8(0,8*2) },
8*8*2
};
static const gfx_layout layout_8x8x4 =
{
8,8,
RGN_FRAC(1,2),
4,
{ RGN_FRAC(1,2) + 0, RGN_FRAC(1,2) + 4, 0, 4 },
{ STEP4(0,1), STEP4(8,1) },
{ STEP8(0,8*2) },
8*8*2
};
static const gfx_layout layout_16x16x4 =
示例4: PORT_BIT
PORT_BIT( 0x01, IP_ACTIVE_HIGH, IPT_SERVICE4 ) // memory reset
INPUT_PORTS_END
/*************************************
*
* Graphics definitions
*
*************************************/
static const gfx_layout charlayout =
{
8,8, /* 8*8 characters */
8192, /* 8192 characters */
3, /* 3 bits per pixel */
{0x20000*8,0x10000*8,0},
{STEP8(0,1)},
{STEP8(0,8)},
8*8
};
static GFXDECODE_START( mayumi )
GFXDECODE_ENTRY( "gfx1", 0x00000, charlayout, 0, 32 )
GFXDECODE_END
/*************************************
*
* Sound interfaces
*
*************************************/
static const ym2203_interface ym2203_config =
示例5: RGN_FRAC
{
m_msm->data_w(m_msm5205next);
m_msm5205next >>= 4;
m_adpcm_toggle^= 1;
if (m_adpcm_toggle)
m_audiocpu->set_input_line(INPUT_LINE_NMI, PULSE_LINE);
}
static const gfx_layout layout_8x8x4 =
{
8,8,
RGN_FRAC(1,4),
4,
{ RGN_FRAC(3,4),RGN_FRAC(2,4),RGN_FRAC(1,4),RGN_FRAC(0,4) },
{ STEP8(0,1) },
{ STEP8(0,8) },
8*8
};
static const gfx_layout layout_16x16x4 =
{
16,16,
RGN_FRAC(1,4),
4,
{ RGN_FRAC(3,4),RGN_FRAC(2,4),RGN_FRAC(1,4),RGN_FRAC(0,4) },
{ STEP8(0,1), STEP8(8*8*2,1) },
{ STEP8(0,8), STEP8(8*8*1,8) },
16*16
};
示例6: RGN_FRAC
INPUT_PORTS_END
/***************************************************************************
Graphics Layout
***************************************************************************/
static const gfx_layout layout_8x8x6 =
{
8, 8,
RGN_FRAC(1, 3),
6,
{ RGN_FRAC(0,3)+8,RGN_FRAC(0,3)+0,
RGN_FRAC(1,3)+8,RGN_FRAC(1,3)+0,
RGN_FRAC(2,3)+8,RGN_FRAC(2,3)+0 },
{ STEP8(0,1) },
{ STEP8(0,2*8) },
8*8*2
};
static const gfx_layout layout_8x32x6 =
{
8, 32,
RGN_FRAC(1, 3),
6,
{ RGN_FRAC(0,3)+8,RGN_FRAC(0,3)+0,
RGN_FRAC(1,3)+8,RGN_FRAC(1,3)+0,
RGN_FRAC(2,3)+8,RGN_FRAC(2,3)+0 },
{ STEP8(0,1) },
{ STEP32(0,2*8) },
8*32*2
示例7: RGN_FRAC
4, /* 4 bits per pixel */
{ 0, 1, 2, 3 }, /* planes are packed in a nibble */
{ 33*4, 32*4, 49*4, 48*4, 1*4, 0*4, 17*4, 16*4 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
32*8 /* 32 bytes per char */
};
#endif
static const gfx_layout gfxlayout_8x8x4 =
{
8,8,
RGN_FRAC(1,1),
4,
//{ STEP4(0,8) },
{ 24,8,16,0 },
{ STEP8(7,-1) },
{ STEP8(0,4*8) },
8*8*4
};
#if 0
static const gfx_layout gfxlayout_16x16x16 =
{
16,16,
RGN_FRAC(1,1),
16,
{ STEP16(0,0) }, // >8planes not supported
{ STEP16(15,-1) },
{ STEP16(0,16*1) },
16*16*16
};
示例8: INPUT_PORTS_START
void ichibanjyan_state::ichibanjyan_io(address_map &map)
{
map.global_mask(0xff);
}
static INPUT_PORTS_START( ichibanjyan )
INPUT_PORTS_END
static const gfx_layout charlayout =
{
8,8,
RGN_FRAC(1,1),
8,
{ 0, 1, 2, 3, 4, 5, 6, 7 },
{ STEP8( 0*512, 8 ) },
{ STEP8( 0*512, 8*8 ) },
8*8*8
};
static GFXDECODE_START( gfx_ichibanjyan )
GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 1 )
GFXDECODE_ENTRY( "gfx2", 0, charlayout, 0, 1 )
GFXDECODE_END
void ichibanjyan_state::machine_start()
{
uint8_t *ROM = memregion("code")->base();
membank("bank1")->configure_entries(0, 4, ROM, 0x8000);
示例9: DECLARE_READ8_MEMBER
DECLARE_READ8_MEMBER(bitmap_r);
DECLARE_WRITE8_MEMBER(bitmap_w);
DECLARE_DEVICE_IMAGE_LOAD_MEMBER(loopy_cart);
void casloopy_map(address_map &map);
void casloopy_sub_map(address_map &map);
};
static const gfx_layout casloopy_4bpp_layout =
{
8,8,
0x10000/32,
4,
{ STEP4(0, 1) },
{ STEP8(0, 4) },
{ STEP8(0, 4*8) },
4*8*8
};
static const gfx_layout casloopy_8bpp_layout =
{
8,8,
0x10000/64,
8,
{ STEP8(0, 1) },
{ STEP8(0, 8) },
{ STEP8(0, 8*8) },
8*8*8
};
示例10: PORT_START
PORT_START("BUFF")
PORT_CONFNAME( 0x1, 0x1, "Sprite Buffer Hack" )
PORT_CONFSETTING( 0x0, DEF_STR( Off ))
PORT_CONFSETTING( 0x1, DEF_STR( On ))
#endif /* USE_SPRITEBUFFER_HACKS */
INPUT_PORTS_END
/*** GFX Decode ***/
static const gfx_layout mcatadv_tiles16x16x4_layout =
{
16,16,
RGN_FRAC(1,1),
4,
{ STEP4(0,1) },
{ STEP8(0,4), STEP8(32*8,4) },
{ STEP8(0,32), STEP8(64*8,32) },
128*8
};
static GFXDECODE_START( mcatadv )
GFXDECODE_ENTRY( "gfx2", 0, mcatadv_tiles16x16x4_layout, 0, 0x200 )
GFXDECODE_ENTRY( "gfx3", 0, mcatadv_tiles16x16x4_layout, 0, 0x200 )
GFXDECODE_END
/* Stolen from Psikyo.c */
WRITE_LINE_MEMBER(mcatadv_state::sound_irq)
{
m_soundcpu->set_input_line(0, state ? ASSERT_LINE : CLEAR_LINE);
}
示例11: PORT_BIT
PORT_BIT( 0x0800, IP_ACTIVE_HIGH, IPT_COIN2 )
PORT_BIT( 0x1000, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x2000, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x4000, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
INPUT_PORTS_END
/* SnowBros */
static struct GfxLayout tilelayout =
{
16,16,
RGN_FRAC(1,1),
4,
{ 0, 1, 2, 3 },
{ STEP8(0,4), STEP8(8*32,4) },
{ STEP8(0,32), STEP8(16*32,32) },
32*32
};
static struct GfxDecodeInfo gfxdecodeinfo[] =
{
{ REGION_GFX1, 0, &tilelayout, 0, 16 },
{ -1 } /* end of array */
};
/* Winter Bobble */
static struct GfxLayout tilelayout_wb =
{
16,16,
示例12: RGN_FRAC
/*************************************
*
* Graphics layouts
*
*************************************/
static const gfx_layout spritelayout =
{
16, 16,
RGN_FRAC(1,3),
3,
{ RGN_FRAC(2,3), RGN_FRAC(1,3), RGN_FRAC(0,3) },
{ STEP8(0,1), STEP8(16*8,1) },
{ STEP16(0,8) },
32*8
};
static GFXDECODE_START( yard )
GFXDECODE_ENTRY( "gfx1", 0, gfx_8x8x3_planar, 0, 32 )
GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 512, 32 )
GFXDECODE_END
/*************************************
*
* Machine drivers
示例13: RGN_FRAC
8*8+0, 8*8+1, 8*8+2, 8*8+3, 8*8+4, 8*8+5, 8*8+6, 8*8+7
},
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8,
16*8, 17*8, 18*8, 19*8, 20*8, 21*8, 22*8, 23*8
},
32*8
};
static const gfx_layout charlayout =
{
8,8,
RGN_FRAC(1,2),
4,
{RGN_FRAC(1,2),RGN_FRAC(1,2)+4,0,4},
{ STEP4(0,1), STEP4(8,1) },
{ STEP8(0,8*2) },
8*8*2
};
static GFXDECODE_START( pitnrun )
GFXDECODE_ENTRY( "gfx3", 0, charlayout, 64, 2 )
GFXDECODE_ENTRY( "gfx2", 0, charlayout, 32, 2 )
GFXDECODE_ENTRY( "gfx1", 0, spritelayout, 0, 4 )
GFXDECODE_END
static MACHINE_CONFIG_START( pitnrun, pitnrun_state )
MCFG_CPU_ADD("maincpu", Z80,XTAL_18_432MHz/6) /* verified on pcb */
MCFG_CPU_PROGRAM_MAP(pitnrun_map)
MCFG_CPU_VBLANK_INT_DRIVER("screen", pitnrun_state, pitnrun_nmi_source)
MCFG_CPU_ADD("audiocpu", Z80, XTAL_5MHz/2) /* verified on pcb */
示例14: RGN_FRAC
/*************************************
*
* Graphics definitions
*
*************************************/
static const gfx_layout charlayout =
{
8,8,
RGN_FRAC(1,1),
2,
{ 0, 4 },
{ STEP4(8*8,1), STEP4(0,1) },
{ STEP8(0,8) },
8*16
};
static const gfx_layout spritelayout =
{
16,16,
RGN_FRAC(1,2),
2,
{ RGN_FRAC(1,2), 0 },
{ STEP8(8*16,1), STEP8(0,1) },
{ STEP16(0,8) },
8*32
};
示例15: PORT_START
PORT_START( "EEPROMOUT" )
PORT_BIT( 0x0001, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, di_write)
PORT_BIT( 0x0002, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, clk_write)
PORT_BIT( 0x0004, IP_ACTIVE_HIGH, IPT_OUTPUT ) PORT_WRITE_LINE_DEVICE_MEMBER("eeprom", eeprom_serial_93cxx_device, cs_write)
INPUT_PORTS_END
/***************************************************************************
Graphics Layout
***************************************************************************/
static const gfx_layout layout_16x16x8 =
{
16, 16,
RGN_FRAC(1, 1),
8,
{ STEP8(0,1) },
{ STEP16(0,8) },
{ STEP16(0,16*8) },
16*16*8
};
static GFXDECODE_START( astrocorp )
GFXDECODE_ENTRY("sprites", 0, layout_16x16x8, 0, 1)
GFXDECODE_END
/***************************************************************************
Machine Drivers
***************************************************************************/
static const UINT16 showhand_default_eeprom[15] = {0x0001,0x0007,0x000a,0x0003,0x0000,0x0009,0x0003,0x0000,0x0002,0x0001,0x0000,0x0000,0x0000,0x0000,0x0000};