本文整理汇总了C++中STEP16函数的典型用法代码示例。如果您正苦于以下问题:C++ STEP16函数的具体用法?C++ STEP16怎么用?C++ STEP16使用的例子?那么, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了STEP16函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: RGN_FRAC
RGN_FRAC(1,3),
3,
{ RGN_FRAC(2,3), RGN_FRAC(1,3), RGN_FRAC(0,3) }, //maybe 120
{ STEP8(0,1) },
{ STEP8(0,8) },
8*8
};
static struct GfxLayout marinedt_objlayout =
{
32,32,
RGN_FRAC(1,1),
2,
{ 0, 4 },
{ STEP4(32*8*7,1), STEP4(32*8*6,1), STEP4(32*8*5,1), STEP4(32*8*4,1), STEP4(32*8*3,1), STEP4(32*8*2,1), STEP4(32*8*1,1), STEP4(32*8*0,1) },
{ STEP16(0,8), STEP16(16*8,8) },
32*32*2
};
static struct GfxDecodeInfo marinedt_gfxdecodeinfo[] =
{
{ REGION_GFX1, 0, &marinedt_charlayout, 0, 4 }, //really only 1 colour set?
{ REGION_GFX2, 0, &marinedt_objlayout, 48, 4 },
{ REGION_GFX3, 0, &marinedt_objlayout, 32, 4 },
{ -1 }
};
PALETTE_INIT( marinedt )
{
int i,r,b,g;
示例2: RGN_FRAC
RGN_FRAC(1,3),
3,
{ RGN_FRAC(0,3), RGN_FRAC(1,3), RGN_FRAC(2,3) },
{ STEP8(0,1) },
{ STEP8(0,8) },
8*8
};
static const gfx_layout sprcros2_spritelayout =
{
32,32,
RGN_FRAC(1,3),
3,
{ RGN_FRAC(0,3), RGN_FRAC(1,3), RGN_FRAC(2,3) },
{ STEP8(0,1), STEP8(256,1), STEP8(512,1), STEP8(768,1) },
{ STEP16(0,8), STEP16(128,8) },
32*32
};
static const gfx_layout sprcros2_fglayout =
{
8,8,
RGN_FRAC(1,1),
2,
{ 0, 4 },
{ STEP4(64,1), STEP4(0,1) },
{ STEP8(0,8) },
8*8*2
};
static GFXDECODE_START( sprcros2 )
示例3: RGN_FRAC
4,
{ RGN_FRAC(3,4), RGN_FRAC(2,4), RGN_FRAC(1,4), RGN_FRAC(0,4) },
{ 0, 1, 2, 3, 4, 5, 6, 7 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
8*8
};
static const gfx_layout bg1616_charlayout =
{
16,16,
RGN_FRAC(1,4),
4,
{ RGN_FRAC(3,4), RGN_FRAC(2,4), RGN_FRAC(1,4), RGN_FRAC(0,4) },
{ 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15 },
{ STEP16(0,16) },
16*16
};
static const gfx_layout bg3232_charlayout =
{
32,32,
RGN_FRAC(1,4),
4,
{ RGN_FRAC(3,4), RGN_FRAC(2,4), RGN_FRAC(1,4), RGN_FRAC(0,4) },
{
0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15,
16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31
},
{ STEP32(0,32) },
示例4: PORT_BIT
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
INPUT_PORTS_END
/***************************************************************************
Graphics Layout
***************************************************************************/
static const gfx_layout layout_8x16x8 =
{
8, 16,
RGN_FRAC(1, 1),
8,
{ STEP8(0,1) },
{ STEP8(0,8) },
{ STEP16(0,8*8) },
8*16*8
};
static const gfx_layout layout_8x16x2 =
{
8, 16,
RGN_FRAC(1, 1),
2,
{ 0,1 },
{ STEP4(3*2,-2),STEP4(7*2,-2) },
{ STEP16(0,8*2) },
8*16*2
};
static GFXDECODE_START( quizpun2 )
示例5: RGN_FRAC
8,8,
RGN_FRAC(1,1),
4,
{ 0, 1, 2, 3 },
{ STEP8(0,4) },
{ STEP8(0,32) },
32*8
};
static const gfx_layout spritelayout =
{
16,16,
RGN_FRAC(1,1),
4,
{ 0, 1, 2, 3 },
{ STEP16(0,4) },
{ STEP16(0,64) },
128*8
};
/* Graphics Decode Information */
static GFXDECODE_START( docastle )
GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0, 64 )
GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 0, 32*2 )
GFXDECODE_END
/* Machine Drivers */
void docastle_state::machine_reset()
示例6: RGN_FRAC
{
8,8,
RGN_FRAC(1,3),
3,
{ RGN_FRAC(0,3), RGN_FRAC(1,3),RGN_FRAC(2,3)},
{STEP8(7,-1)},
{STEP8(0,8)},
8*8
};
static const gfx_layout spritelayout =
{
16,16,
RGN_FRAC(1,4),
4,
{ RGN_FRAC(1,4), RGN_FRAC(3,4),RGN_FRAC(0,4),RGN_FRAC(2,4)},
{STEP16(15,-1)},
{STEP16(0,16)},
16*16
};
static GFXDECODE_START( mustache )
GFXDECODE_ENTRY( "gfx1", 0, charlayout, 0x00, 16 )
GFXDECODE_ENTRY( "gfx2", 0, spritelayout, 0x80, 8 )
GFXDECODE_END
static TIMER_CALLBACK( clear_irq_cb )
{
cputag_set_input_line(machine, "maincpu", 0, CLEAR_LINE);
}
static INTERRUPT_GEN( assert_irq )
示例7: PORT_BIT
PORT_BIT( 0x8000, IP_ACTIVE_LOW, IPT_UNKNOWN )
INPUT_PORTS_END
/**************************************************************
GFX DECODING
**************************************************************/
static const gfx_layout charlayout =
{
16,16, /* 16*16 characters */
RGN_FRAC(1,1),
4, /* 4 bits per pixel */
{ STEP4(0,1) },
{ STEP16(0,4) },
{ STEP16(0,4*16) },
16*16*4 /* every sprite takes 128 consecutive bytes */
};
static const gfx_layout char_8x8_layout =
{
8,8, /* 8*8 characters */
RGN_FRAC(1,1),
4, /* 4 bits per pixel */
{ STEP4(0,1) },
{ STEP8(0,4) },
{ STEP8(0,4*8) },
8*8*4 /* every sprite takes 32 consecutive bytes */
};
示例8: PORT_BIT
PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN )
PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN )
INPUT_PORTS_END
/***************************************************************************
Graphics Layout
***************************************************************************/
static const gfx_layout layout_16x16x4 =
{
16, 16,
RGN_FRAC(1, 1),
4,
{ STEP4(0,1) },
{ 4*1,4*0, 4*3,4*2, 4*5,4*4, 4*7,4*6, 4*9,4*8, 4*11,4*10, 4*13,4*12, 4*15,4*14 },
{ STEP16(0,16*4) },
16*16*4
};
static const gfx_layout layout_16x16x1 =
{
16, 16,
RGN_FRAC(1, 1),
1,
{ 0 },
{ STEP8(7*1,-1),STEP8(15*1,-1) },
{ STEP16(0,16*1) },
16*16*1
};
static GFXDECODE_START( gfx_quizpun2 )
示例9: RGN_FRAC
8,8,
RGN_FRAC(1,1),
1,
{ 0 },
{ 0, 1, 2, 3, 4, 5, 6, 7 },
{ 0*8, 1*8, 2*8, 3*8, 4*8, 5*8, 6*8, 7*8 },
8*8*1
};
*/
static const gfx_layout wrong_layout3 = /* 16x16x9? seems to be some 18 bytes granularity in roms */
{
16,16,
RGN_FRAC(1,1),
8/*9*/,
{ /*0,*/ 1, 2, 3, 4, 5, 6, 7, 8 },
{ STEP16(0,1)/*STEP16(0,9)*/ },
{ STEP16(0,16*9) },
16*16*9
};
static const gfx_decode gfxdecodeinfo[] =
{
// { REGION_GFX1, 0, &wrong_layout, 0, 0x100 }, // sprites (8x8x?)
// { REGION_GFX1, 0, &wrong_layout2, 0, 0x100 }, // tiles (16x16x?)
{ REGION_GFX1, 0, &wrong_layout3, 0, 0x100 }, // tiles (16x16x9)
{ -1 }
};
/***************************************************************************
Machine driver
示例10: RGN_FRAC
RGN_FRAC(1,1),
4,
{ 8, 0, 24, 16 },
{ STEP8(0,1) },
{ STEP8(0,32) },
32*8
};
static const gfx_layout spritelayout =
{
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(16*8,1) },
{ STEP16(0,8) },
32*8
};
static const gfx_layout spritelayout2 =
{
16,16,
RGN_FRAC(1,4),
4,
{ RGN_FRAC(3,4), RGN_FRAC(2,4), RGN_FRAC(1,4), RGN_FRAC(0,4) },
{ STEP8(8,1), STEP8(0,1) },
{ STEP16(0,16) },
32*8
};
static GFXDECODE_START( m107 )
示例11: RGN_FRAC
8,8,
RGN_FRAC(1,1),
4,
{ STEP4(0, 1) },
{ STEP8(0, 4) },
{ STEP8(0, 4*8) },
8*8*4
};
static const gfx_layout layout_16x16x8 =
{
16,16,
RGN_FRAC(1,1),
8,
{ STEP8(0, 1) },
{ STEP16(0, 8) },
{ STEP16(0, 8*16) },
16*16*8
};
static GFXDECODE_START( joystand )
GFXDECODE_ENTRY( "tiles", 0, layout_8x8x4, 0, 0x100 )
GFXDECODE_ENTRY( "cart.u5", 0, layout_16x16x8, 0, 0x10 )
GFXDECODE_ENTRY( "cart.u6", 0, layout_16x16x8, 0, 0x10 )
GFXDECODE_ENTRY( "cart.u3", 0, layout_16x16x8, 0, 0x10 )
GFXDECODE_ENTRY( "cart.u4", 0, layout_16x16x8, 0, 0x10 )
GFXDECODE_ENTRY( "cart.u1", 0, layout_16x16x8, 0, 0x10 )
GFXDECODE_ENTRY( "cart.u2", 0, layout_16x16x8, 0, 0x10 )
GFXDECODE_END
示例12: RGN_FRAC
/***************************************************************************
Graphics Layouts
***************************************************************************/
static struct GfxLayout layout16x16x6 =
{
16,16,
RGN_FRAC(1,1),
6,
{ 0,1,2,3,4,5 },
{ STEP4(3*6,-6),STEP4(7*6,-6),STEP4(11*6,-6),STEP4(15*6,-6) },
{ STEP16(0,16*6) },
16*16*6
};
static struct GfxDecodeInfo fantland_gfxdecodeinfo[] =
{
{ REGION_GFX1, 0, &layout16x16x6, 0, 4 }, // [0] Sprites
{ -1 }
};
/***************************************************************************
Machine Drivers
***************************************************************************/
示例13: RGN_FRAC
RGN_FRAC(1,2),
4,
{ RGN_FRAC(1,2)+8,RGN_FRAC(1,2)+0,RGN_FRAC(0,2)+8,RGN_FRAC(0,2)+0 },
{ STEP8(0,1) },
{ STEP8(0,8*2) },
8*16
};
static const gfx_layout tile_16x16_layout_5bpp =
{
16,16,
RGN_FRAC(1,3),
5,
{ RGN_FRAC(2,3), RGN_FRAC(1,3)+8,RGN_FRAC(1,3)+0,RGN_FRAC(0,3)+8,RGN_FRAC(0,3)+0 },
{ STEP8(16*8*2,1), STEP8(0,1) },
{ STEP16(0,8*2) },
32*16
};
static const gfx_layout tile_16x16_layout =
{
16,16,
RGN_FRAC(1,2),
4,
{ RGN_FRAC(1,2)+8,RGN_FRAC(1,2)+0,RGN_FRAC(0,2)+8,RGN_FRAC(0,2)+0 },
{ STEP8(16*8*2,1), STEP8(0,1) },
{ STEP16(0,8*2) },
32*16
};
static const gfx_layout spritelayout =
示例14: RGN_FRAC
static struct GfxDecodeInfo gfxdecodeinfo[] =
{
{ REGION_GFX1, 0, &tilelayout, 0, 16 },
{ -1 } /* end of array */
};
/* Winter Bobble */
static struct GfxLayout tilelayout_wb =
{
16,16,
RGN_FRAC(1,1),
4,
{ 0, 1, 2, 3 },
{ STEP4(3*4,-4), STEP4(7*4,-4), STEP4(11*4,-4), STEP4(15*4,-4) },
{ STEP16(0,64) },
16*64
};
static struct GfxDecodeInfo gfxdecodeinfo_wb[] =
{
{ REGION_GFX1, 0, &tilelayout_wb, 0, 16 },
{ -1 }
};
/* SemiCom */
static struct GfxLayout hyperpac_tilelayout =
{
16,16,
RGN_FRAC(1,1),
示例15: RGN_FRAC
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
};
#endif
static GFXDECODE_START( igs_m027 )
GFXDECODE_ENTRY( "gfx1", 0, gfxlayout_8x8x4, 0, 16 )
// GFXDECODE_ENTRY( "gfx2", 0, gfxlayout_16x16x16, 0, 16 )
GFXDECODE_END
INTERRUPT_GEN_MEMBER(igs_m027_state::igs_majhong_interrupt)
{
generic_pulse_irq_line(device.execute(), ARM7_FIRQ_LINE, 1);