public void handler(int offset, int data) {
            UBytePtr RAM = memory_region(REGION_CPU2);
            RAM.write(offset, data);
        }
    };
    /*TODO*///	
/*TODO*///	/***************************************************************************/
/*TODO*///	
/*TODO*///	#define SYS16_JOY1 PORT_START();  \
/*TODO*///		PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 );\
/*TODO*///		PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 );\
/*TODO*///		PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 );\
/*TODO*///		PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN );\
/*TODO*///		PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY );\
/*TODO*///		PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY );\
/*TODO*///		PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY );\
/*TODO*///		PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY );
/*TODO*///	
/*TODO*///	#define SYS16_JOY2 PORT_START();  \
/*TODO*///		PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN );\
/*TODO*///		PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_COCKTAIL );
/*TODO*///	
/*TODO*///	#define SYS16_JOY3 PORT_START();  \
/*TODO*///		PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_PLAYER3 );\
/*TODO*///		PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_PLAYER3 );\
/*TODO*///		PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_PLAYER3 );\
/*TODO*///		PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN );\
/*TODO*///		PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_PLAYER3 );\
/*TODO*///		PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_PLAYER3 );\
/*TODO*///		PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_PLAYER3 );\
/*TODO*///		PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_PLAYER3 );
/*TODO*///	
/*TODO*///	#define SYS16_JOY1_SWAPPEDBUTTONS PORT_START();  \
/*TODO*///		PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 );\
/*TODO*///		PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 );\
/*TODO*///		PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 );\
/*TODO*///		PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN );\
/*TODO*///		PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY );\
/*TODO*///		PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY );\
/*TODO*///		PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY );\
/*TODO*///		PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY );
/*TODO*///	
/*TODO*///	#define SYS16_JOY2_SWAPPEDBUTTONS PORT_START();  \
/*TODO*///		PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_BUTTON3 | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_BUTTON2 | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x04, IP_ACTIVE_LOW, IPT_BUTTON1 | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_UNKNOWN );\
/*TODO*///		PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_JOYSTICK_DOWN  | IPF_8WAY | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_JOYSTICK_UP    | IPF_8WAY | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_JOYSTICK_RIGHT | IPF_8WAY | IPF_COCKTAIL );\
/*TODO*///		PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_JOYSTICK_LEFT  | IPF_8WAY | IPF_COCKTAIL );
/*TODO*///	
/*TODO*///	#define SYS16_SERVICE PORT_START();  \
/*TODO*///		PORT_BIT( 0x01, IP_ACTIVE_LOW, IPT_COIN1 );\
/*TODO*///		PORT_BIT( 0x02, IP_ACTIVE_LOW, IPT_COIN2 );\
/*TODO*///		PORT_BITX(0x04, IP_ACTIVE_LOW, IPT_SERVICE, DEF_STR( "Service_Mode") ); KEYCODE_F2, IP_JOY_NONE ) \
/*TODO*///		PORT_BIT( 0x08, IP_ACTIVE_LOW, IPT_COIN3 );\
/*TODO*///		PORT_BIT( 0x10, IP_ACTIVE_LOW, IPT_START1 );\
/*TODO*///		PORT_BIT( 0x20, IP_ACTIVE_LOW, IPT_START2 );\
/*TODO*///		PORT_BIT( 0x40, IP_ACTIVE_LOW, IPT_UNKNOWN );\
/*TODO*///		PORT_BIT( 0x80, IP_ACTIVE_LOW, IPT_UNKNOWN );
/*TODO*///	
/*TODO*///	#define SYS16_COINAGE PORT_START();  \
/*TODO*///		PORT_DIPNAME( 0x0f, 0x0f, DEF_STR( "Coin_A") ); \
/*TODO*///		PORT_DIPSETTING(    0x07, DEF_STR( "4C_1C") ); \
/*TODO*///		PORT_DIPSETTING(    0x08, DEF_STR( "3C_1C") ); \
/*TODO*///		PORT_DIPSETTING(    0x09, DEF_STR( "2C_1C") ); \
/*TODO*///		PORT_DIPSETTING(    0x05, "2 Coins/1 Credit 5/3 6/4");\
/*TODO*///		PORT_DIPSETTING(    0x04, "2 Coins/1 Credit 4/3");\
/*TODO*///		PORT_DIPSETTING(    0x0f, DEF_STR( "1C_1C") ); \
/*TODO*///		PORT_DIPSETTING(    0x01, "1 Coin/1 Credit 2/3");\
/*TODO*///		PORT_DIPSETTING(    0x02, "1 Coin/1 Credit 4/5");\
/*TODO*///		PORT_DIPSETTING(    0x03, "1 Coin/1 Credit 5/6");\
/*TODO*///		PORT_DIPSETTING(    0x06, DEF_STR( "2C_3C") ); \
/*TODO*///		PORT_DIPSETTING(    0x0e, DEF_STR( "1C_2C") ); \
/*TODO*///		PORT_DIPSETTING(    0x0d, DEF_STR( "1C_3C") ); \
/*TODO*///		PORT_DIPSETTING(    0x0c, DEF_STR( "1C_4C") ); \
/*TODO*///		PORT_DIPSETTING(    0x0b, DEF_STR( "1C_5C") ); \
/*TODO*///		PORT_DIPSETTING(    0x0a, DEF_STR( "1C_6C") ); \
/*TODO*///		PORT_DIPSETTING(    0x00, "Free Play (if Coin B too);or 1/1") \
/*TODO*///		PORT_DIPNAME( 0xf0, 0xf0, DEF_STR( "Coin_B") ); \
/*TODO*///		PORT_DIPSETTING(    0x70, DEF_STR( "4C_1C") ); \
/*TODO*///		PORT_DIPSETTING(    0x80, DEF_STR( "3C_1C") ); \
/*TODO*///		PORT_DIPSETTING(    0x90, DEF_STR( "2C_1C") ); \
/*TODO*///		PORT_DIPSETTING(    0x50, "2 Coins/1 Credit 5/3 6/4");\
/*TODO*///		PORT_DIPSETTING(    0x40, "2 Coins/1 Credit 4/3");\
/*TODO*///		PORT_DIPSETTING(    0xf0, DEF_STR( "1C_1C") ); \
/*TODO*///		PORT_DIPSETTING(    0x10, "1 Coin/1 Credit 2/3");\
/*TODO*///		PORT_DIPSETTING(    0x20, "1 Coin/1 Credit 4/5");\
/*TODO*///		PORT_DIPSETTING(    0x30, "1 Coin/1 Credit 5/6");\
/*TODO*///		PORT_DIPSETTING(    0x60, DEF_STR( "2C_3C") ); \
/*TODO*///		PORT_DIPSETTING(    0xe0, DEF_STR( "1C_2C") ); \
/*TODO*///		PORT_DIPSETTING(    0xd0, DEF_STR( "1C_3C") ); \
/*TODO*///		PORT_DIPSETTING(    0xc0, DEF_STR( "1C_4C") ); \
/*TODO*///		PORT_DIPSETTING(    0xb0, DEF_STR( "1C_5C") ); \
/*TODO*///		PORT_DIPSETTING(    0xa0, DEF_STR( "1C_6C") ); \
/*TODO*///		PORT_DIPSETTING(    0x00, "Free Play (if Coin A too);or 1/1")
/*TODO*///	
/*TODO*///	
/*TODO*///	
/*TODO*///	/***************************************************************************/
/*TODO*///	// sys16A
/*TODO*///	static RomLoadPtr rom_alexkidd = new RomLoadPtr(){ public void handler(){ 
/*TODO*///		ROM_REGION( 0x040000, REGION_CPU1 );/* 68000 code */
/*TODO*///		ROM_LOAD_EVEN( "epr10429.42", 0x000000, 0x10000, 0xbdf49eca )
/*TODO*///		ROM_LOAD_ODD ( "epr10427.26", 0x000000, 0x10000, 0xf6e3dd29 )
/*TODO*///		ROM_LOAD_EVEN( "epr10430.43", 0x020000, 0x10000, 0x89e3439f )
/*TODO*///		ROM_LOAD_ODD ( "epr10428.25", 0x020000, 0x10000, 0xdbed3210 )
/*TODO*///	
/*TODO*///		ROM_REGION( 0x18000, REGION_GFX1 | REGIONFLAG_DISPOSE );/* tiles */
/*TODO*///		ROM_LOAD( "10431.95", 0x00000, 0x08000, 0xa7962c39 );
/*TODO*///		ROM_LOAD( "10432.94", 0x08000, 0x08000, 0xdb8cd24e );
/*TODO*///		ROM_LOAD( "10433.93", 0x10000, 0x08000, 0xe163c8c2 );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x050000*2, REGION_GFX2 );/* sprites */
/*TODO*///		ROM_LOAD( "10437.10", 0x000000, 0x008000, 0x522f7618 );
/*TODO*///		ROM_LOAD( "10441.11", 0x008000, 0x008000, 0x74e3a35c );
/*TODO*///		ROM_LOAD( "10438.17", 0x010000, 0x008000, 0x738a6362 );
/*TODO*///		ROM_LOAD( "10442.18", 0x018000, 0x008000, 0x86cb9c14 );
/*TODO*///		ROM_LOAD( "10439.23", 0x020000, 0x008000, 0xb391aca7 );
/*TODO*///		ROM_LOAD( "10443.24", 0x028000, 0x008000, 0x95d32635 );
/*TODO*///		ROM_LOAD( "10440.29", 0x030000, 0x008000, 0x23939508 );
/*TODO*///		ROM_LOAD( "10444.30", 0x038000, 0x008000, 0x82115823 );
/*TODO*///	//	ROM_LOAD( "10437.10", 0x040000, 0x008000, 0x522f7618 );twice?
/*TODO*///	//	ROM_LOAD( "10441.11", 0x048000, 0x008000, 0x74e3a35c );twice?
/*TODO*///	
/*TODO*///		ROM_REGION( 0x10000, REGION_CPU2 );/* sound CPU */
/*TODO*///		ROM_LOAD( "10434.12", 0x0000, 0x8000, 0x77141cce );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x1000, REGION_CPU3 );     /* 4k for 7751 onboard ROM */
/*TODO*///		ROM_LOAD( "7751.bin",     0x0000, 0x0400, 0x6a9534fc );/* 7751 - U34 */
/*TODO*///	
/*TODO*///		ROM_REGION( 0x10000, REGION_SOUND1 );/* 7751 sound data (not used yet) */
/*TODO*///		ROM_LOAD( "10435.1", 0x0000, 0x8000, 0xad89f6e3 );
/*TODO*///		ROM_LOAD( "10436.2", 0x8000, 0x8000, 0x96c76613 );
/*TODO*///	ROM_END(); }}; 
/*TODO*///	
/*TODO*///	static RomLoadPtr rom_alexkida = new RomLoadPtr(){ public void handler(){ 
/*TODO*///		ROM_REGION( 0x040000, REGION_CPU1 );/* 68000 code */
/*TODO*///		ROM_LOAD_EVEN( "10447.43", 0x000000, 0x10000, 0x29e87f71 )
/*TODO*///		ROM_LOAD_ODD ( "10445.26", 0x000000, 0x10000, 0x25ce5b6f )
/*TODO*///		ROM_LOAD_EVEN( "10448.42", 0x020000, 0x10000, 0x05baedb5 )
/*TODO*///		ROM_LOAD_ODD ( "10446.25", 0x020000, 0x10000, 0xcd61d23c )
/*TODO*///	
/*TODO*///		ROM_REGION( 0x18000, REGION_GFX1 | REGIONFLAG_DISPOSE );/* tiles */
/*TODO*///		ROM_LOAD( "10431.95", 0x00000, 0x08000, 0xa7962c39 );
/*TODO*///		ROM_LOAD( "10432.94", 0x08000, 0x08000, 0xdb8cd24e );
/*TODO*///		ROM_LOAD( "10433.93", 0x10000, 0x08000, 0xe163c8c2 );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x050000*2, REGION_GFX2 );/* sprites */
/*TODO*///		ROM_LOAD( "10437.10", 0x000000, 0x008000, 0x522f7618 );
/*TODO*///		ROM_LOAD( "10441.11", 0x008000, 0x008000, 0x74e3a35c );
/*TODO*///		ROM_LOAD( "10438.17", 0x010000, 0x008000, 0x738a6362 );
/*TODO*///		ROM_LOAD( "10442.18", 0x018000, 0x008000, 0x86cb9c14 );
/*TODO*///		ROM_LOAD( "10439.23", 0x020000, 0x008000, 0xb391aca7 );
/*TODO*///		ROM_LOAD( "10443.24", 0x028000, 0x008000, 0x95d32635 );
/*TODO*///		ROM_LOAD( "10440.29", 0x030000, 0x008000, 0x23939508 );
/*TODO*///		ROM_LOAD( "10444.30", 0x038000, 0x008000, 0x82115823 );
/*TODO*///	//	ROM_LOAD( "10437.10", 0x040000, 0x008000, 0x522f7618 );twice?
/*TODO*///	//	ROM_LOAD( "10441.11", 0x048000, 0x008000, 0x74e3a35c );twice?
/*TODO*///	
/*TODO*///		ROM_REGION( 0x10000, REGION_CPU2 );/* sound CPU */
/*TODO*///		ROM_LOAD( "10434.12", 0x0000, 0x8000, 0x77141cce );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x1000, REGION_CPU3 );     /* 4k for 7751 onboard ROM */
/*TODO*///		ROM_LOAD( "7751.bin",     0x0000, 0x0400, 0x6a9534fc );/* 7751 - U34 */
/*TODO*///	
/*TODO*///		ROM_REGION( 0x10000, REGION_SOUND1 );/* 7751 sound data */
/*TODO*///		ROM_LOAD( "10435.1", 0x0000, 0x8000, 0xad89f6e3 );
/*TODO*///		ROM_LOAD( "10436.2", 0x8000, 0x8000, 0x96c76613 );
/*TODO*///	ROM_END(); }}; 
/*TODO*///	
/*TODO*///	/***************************************************************************/
/*TODO*///	
/*TODO*///	public static ReadHandlerPtr alexkidd_skip = new ReadHandlerPtr() { public int handler(int offset)
/*TODO*///	{
/*TODO*///		if (cpu_get_pc()==0x242c) {cpu_spinuntil_int(); return 0xffff;}
/*TODO*///	
/*TODO*///		return READ_WORD(&sys16_workingram[0x3108]);
/*TODO*///	} };
/*TODO*///	
/*TODO*///	static MemoryReadAddress alexkidd_readmem[] =
/*TODO*///	{
/*TODO*///		new MemoryReadAddress( 0x000000, 0x03ffff, MRA_ROM ),
/*TODO*///		new MemoryReadAddress( 0x400000, 0x40ffff, sys16_tileram_r ),
/*TODO*///		new MemoryReadAddress( 0x410000, 0x410fff, sys16_textram_r ),
/*TODO*///		new MemoryReadAddress( 0x440000, 0x440fff, MRA_BANK2 ),
/*TODO*///		new MemoryReadAddress( 0x840000, 0x840fff, paletteram_word_r ),
/*TODO*///		new MemoryReadAddress( 0xc40002, 0xc40005, MRA_NOP ),		//??
/*TODO*///		new MemoryReadAddress( 0xc41002, 0xc41003, input_port_0_r ),
/*TODO*///		new MemoryReadAddress( 0xc41006, 0xc41007, io_player2_r ),
/*TODO*///		new MemoryReadAddress( 0xc41000, 0xc41001, io_service_r ),
/*TODO*///		new MemoryReadAddress( 0xc42000, 0xc42001, io_dip1_r ),
/*TODO*///		new MemoryReadAddress( 0xc42002, 0xc42003, io_dip2_r ),
/*TODO*///		new MemoryReadAddress( 0xc60000, 0xc60001, MRA_NOP ),
/*TODO*///		new MemoryReadAddress( 0xfff108, 0xfff109, alexkidd_skip ),
/*TODO*///		new MemoryReadAddress( 0xffc000, 0xffffff, MRA_BANK1 ),
/*TODO*///		new MemoryReadAddress(-1)
/*TODO*///	};
/*TODO*///	
/*TODO*///	static MemoryWriteAddress alexkidd_writemem[] =
/*TODO*///	{
/*TODO*///		new MemoryWriteAddress( 0x000000, 0x03ffff, MWA_ROM ),
/*TODO*///		new MemoryWriteAddress( 0x410000, 0x410fff, sys16_textram_w,sys16_textram ),
/*TODO*///		new MemoryWriteAddress( 0x400000, 0x40ffff, sys16_tileram_w,sys16_tileram ),
/*TODO*///		new MemoryWriteAddress( 0x440000, 0x440fff, MWA_BANK2,sys16_spriteram ),
/*TODO*///		new MemoryWriteAddress( 0x840000, 0x840fff, sys16_paletteram_w, paletteram ),
/*TODO*///		new MemoryWriteAddress( 0xc40000, 0xc40001, sound_command_nmi_w ),
/*TODO*///		new MemoryWriteAddress( 0xc40002, 0xc40005, MWA_NOP ),		//??
/*TODO*///		new MemoryWriteAddress( 0xffc000, 0xffffff, MWA_BANK1,sys16_workingram ),
/*TODO*///		new MemoryWriteAddress(-1)
/*TODO*///	};
/*TODO*///	/***************************************************************************/
/*TODO*///	
/*TODO*///	static void alexkidd_update_proc( void ){
/*TODO*///		sys16_fg_scrollx = READ_WORD( &sys16_textram[0x0ff8] ) & 0x01ff;
/*TODO*///		sys16_bg_scrollx = READ_WORD( &sys16_textram[0x0ffa] ) & 0x01ff;
/*TODO*///		sys16_fg_scrolly = READ_WORD( &sys16_textram[0x0f24] ) & 0x00ff;
/*TODO*///		sys16_bg_scrolly = READ_WORD( &sys16_textram[0x0f26] ) & 0x01ff;
/*TODO*///	
/*TODO*///		set_fg_page1( READ_WORD( &sys16_textram[0x0e9e] ) );
/*TODO*///		set_bg_page1( READ_WORD( &sys16_textram[0x0e9c] ) );
/*TODO*///	}
/*TODO*///	
/*TODO*///	public static InitMachinePtr alexkidd_init_machine = new InitMachinePtr() { public void handler() {
/*TODO*///		static int bank[16] = { 00,01,02,03,00,01,02,03,00,01,02,03,00,01,02,03};
/*TODO*///		sys16_obj_bank = bank;
/*TODO*///		sys16_textmode=1;
/*TODO*///		sys16_spritesystem = 2;
/*TODO*///		sys16_sprxoffset = -0xbc;
/*TODO*///		sys16_fgxoffset = sys16_bgxoffset = 7;
/*TODO*///		sys16_bg_priority_mode=1;
/*TODO*///	
/*TODO*///		sys16_update_proc = alexkidd_update_proc;
/*TODO*///	} };
/*TODO*///	
/*TODO*///	public static InitDriverPtr init_alexkidd = new InitDriverPtr() { public void handler() 
/*TODO*///	{
/*TODO*///		sys16_onetime_init_machine();
/*TODO*///		sys16_sprite_decode( 5,0x010000 );
/*TODO*///	} };
/*TODO*///	/***************************************************************************/
/*TODO*///	
/*TODO*///	static InputPortPtr input_ports_alexkidd = new InputPortPtr(){ public void handler() { 
/*TODO*///		SYS16_JOY1_SWAPPEDBUTTONS
/*TODO*///		SYS16_JOY2_SWAPPEDBUTTONS
/*TODO*///		SYS16_SERVICE
/*TODO*///		SYS16_COINAGE
/*TODO*///	
/*TODO*///	PORT_START(); 	/* DSW1 */
/*TODO*///		PORT_DIPNAME( 0x01, 0x00, "Continues" );
/*TODO*///		PORT_DIPSETTING(    0x01, "Only before level 5" );
/*TODO*///		PORT_DIPSETTING(    0x00, "Unlimited" );
/*TODO*///		PORT_DIPNAME( 0x02, 0x00, DEF_STR( "Demo_Sounds") );
/*TODO*///		PORT_DIPSETTING(    0x02, DEF_STR( "Off") );
/*TODO*///		PORT_DIPSETTING(    0x00, DEF_STR( "On") );
/*TODO*///		PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( "Lives") );
/*TODO*///		PORT_DIPSETTING(    0x0c, "3" );
/*TODO*///		PORT_DIPSETTING(    0x08, "4" );
/*TODO*///		PORT_DIPSETTING(    0x04, "5" );
/*TODO*///		PORT_BITX( 0,       0x00, IPT_DIPSWITCH_SETTING | IPF_CHEAT, "240", IP_KEY_NONE, IP_JOY_NONE );
/*TODO*///		PORT_DIPNAME( 0x30, 0x30, DEF_STR( "Bonus_Life") );
/*TODO*///		PORT_DIPSETTING(    0x20, "10000" );
/*TODO*///		PORT_DIPSETTING(    0x30, "20000" );
/*TODO*///		PORT_DIPSETTING(    0x10, "40000" );
/*TODO*///		PORT_DIPSETTING(    0x00, "None" );
/*TODO*///		PORT_DIPNAME( 0xc0, 0xc0, "Time Adjust" );
/*TODO*///		PORT_DIPSETTING(    0x80, "70" );
/*TODO*///		PORT_DIPSETTING(    0xc0, "60" );
/*TODO*///		PORT_DIPSETTING(    0x40, "50" );
/*TODO*///		PORT_DIPSETTING(    0x00, "40" );
/*TODO*///	
/*TODO*///	INPUT_PORTS_END(); }}; 
/*TODO*///	
/*TODO*///	/***************************************************************************/
/*TODO*///	
/*TODO*///	MACHINE_DRIVER_7751( machine_driver_alexkidd, \
/*TODO*///		alexkidd_readmem,alexkidd_writemem,alexkidd_init_machine,gfx8 )
/*TODO*///	
/*TODO*///	/***************************************************************************/
/*TODO*///	// sys16B
/*TODO*///	static RomLoadPtr rom_aliensyn = new RomLoadPtr(){ public void handler(){ 
/*TODO*///		ROM_REGION( 0x030000, REGION_CPU1 );/* 68000 code */
/*TODO*///		ROM_LOAD_EVEN( "11083.a4", 0x00000, 0x8000, 0xcb2ad9b3 )
/*TODO*///		ROM_LOAD_ODD ( "11080.a1", 0x00000, 0x8000, 0xfe7378d9 )
/*TODO*///		ROM_LOAD_EVEN( "11084.a5", 0x10000, 0x8000, 0x2e1ec7b1 )
/*TODO*///		ROM_LOAD_ODD ( "11081.a2", 0x10000, 0x8000, 0x1308ee63 )
/*TODO*///		ROM_LOAD_EVEN( "11085.a6", 0x20000, 0x8000, 0xcff78f39 )
/*TODO*///		ROM_LOAD_ODD ( "11082.a3", 0x20000, 0x8000, 0x9cdc2a14 )
/*TODO*///	
/*TODO*///		ROM_REGION( 0x30000, REGION_GFX1 | REGIONFLAG_DISPOSE );/* tiles */
/*TODO*///		ROM_LOAD( "10702.b9",  0x00000, 0x10000, 0x393bc813 );
/*TODO*///		ROM_LOAD( "10703.b10", 0x10000, 0x10000, 0x6b6dd9f5 );
/*TODO*///		ROM_LOAD( "10704.b11", 0x20000, 0x10000, 0x911e7ebc );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x080000*2, REGION_GFX2 );/* sprites */
/*TODO*///		ROM_LOAD( "10709.b1", 0x00000, 0x10000, 0xaddf0a90 );
/*TODO*///		ROM_LOAD( "10713.b5", 0x10000, 0x10000, 0xececde3a );
/*TODO*///		ROM_LOAD( "10710.b2", 0x20000, 0x10000, 0x992369eb );
/*TODO*///		ROM_LOAD( "10714.b6", 0x30000, 0x10000, 0x91bf42fb );
/*TODO*///		ROM_LOAD( "10711.b3", 0x40000, 0x10000, 0x29166ef6 );
/*TODO*///		ROM_LOAD( "10715.b7", 0x50000, 0x10000, 0xa7c57384 );
/*TODO*///		ROM_LOAD( "10712.b4", 0x60000, 0x10000, 0x876ad019 );
/*TODO*///		ROM_LOAD( "10716.b8", 0x70000, 0x10000, 0x40ba1d48 );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x28000, REGION_CPU2 );/* sound CPU */
/*TODO*///		ROM_LOAD( "10723.a7", 0x0000, 0x8000, 0x99953526 );
/*TODO*///		ROM_LOAD( "10724.a8", 0x10000, 0x8000, 0xf971a817 );
/*TODO*///		ROM_LOAD( "10725.a9", 0x18000, 0x8000, 0x6a50e08f );
/*TODO*///		ROM_LOAD( "10726.a10",0x20000, 0x8000, 0xd50b7736 );
/*TODO*///	ROM_END(); }}; 
/*TODO*///	
/*TODO*///	// sys16A - use a different sound chip?
/*TODO*///	static RomLoadPtr rom_aliensya = new RomLoadPtr(){ public void handler(){ 
/*TODO*///		ROM_REGION( 0x030000, REGION_CPU1 );/* 68000 code. I guessing the order a bit here */
/*TODO*///		ROM_LOAD_EVEN( "10808", 0x00000, 0x8000, 0xe669929f )
/*TODO*///		ROM_LOAD_ODD ( "10806", 0x00000, 0x8000, 0x9f7f8fdd )
/*TODO*///		ROM_LOAD_EVEN( "10809", 0x10000, 0x8000, 0x9a424919 )
/*TODO*///		ROM_LOAD_ODD ( "10807", 0x10000, 0x8000, 0x3d2c3530 )
/*TODO*///		ROM_LOAD_EVEN( "10701", 0x20000, 0x8000, 0x92171751 )
/*TODO*///		ROM_LOAD_ODD ( "10698", 0x20000, 0x8000, 0xc1e4fdc0 )
/*TODO*///	
/*TODO*///		ROM_REGION( 0x30000, REGION_GFX1 | REGIONFLAG_DISPOSE );/* tiles */
/*TODO*///		ROM_LOAD( "10739", 0x00000, 0x10000, 0xa29ec207 );
/*TODO*///		ROM_LOAD( "10740", 0x10000, 0x10000, 0x47f93015 );
/*TODO*///		ROM_LOAD( "10741", 0x20000, 0x10000, 0x4970739c );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x080000*2, REGION_GFX2 );/* sprites */
/*TODO*///		ROM_LOAD( "10709.b1", 0x00000, 0x10000, 0xaddf0a90 );
/*TODO*///		ROM_LOAD( "10713.b5", 0x10000, 0x10000, 0xececde3a );
/*TODO*///		ROM_LOAD( "10710.b2", 0x20000, 0x10000, 0x992369eb );
/*TODO*///		ROM_LOAD( "10714.b6", 0x30000, 0x10000, 0x91bf42fb );
/*TODO*///		ROM_LOAD( "10711.b3", 0x40000, 0x10000, 0x29166ef6 );
/*TODO*///		ROM_LOAD( "10715.b7", 0x50000, 0x10000, 0xa7c57384 );
/*TODO*///		ROM_LOAD( "10712.b4", 0x60000, 0x10000, 0x876ad019 );
/*TODO*///		ROM_LOAD( "10716.b8", 0x70000, 0x10000, 0x40ba1d48 );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x28000, REGION_CPU2 );/* sound CPU */
/*TODO*///		ROM_LOAD( "10705", 0x00000, 0x8000, 0x777b749e );
/*TODO*///		ROM_LOAD( "10706", 0x10000, 0x8000, 0xaa114acc );
/*TODO*///		ROM_LOAD( "10707", 0x18000, 0x8000, 0x800c1d82 );
/*TODO*///		ROM_LOAD( "10708", 0x20000, 0x8000, 0x5921ef52 );
/*TODO*///	ROM_END(); }}; 
/*TODO*///	
/*TODO*///	static RomLoadPtr rom_aliensyj = new RomLoadPtr(){ public void handler(){ 
/*TODO*///		ROM_REGION( 0x030000, REGION_CPU1 );/* Custom 68000 code . I guessing the order a bit here */
/*TODO*///	// custom cpu 317-0033
/*TODO*///		ROM_LOAD_EVEN( "epr10699.43", 0x00000, 0x8000, 0x3fd38d17 )
/*TODO*///		ROM_LOAD_ODD ( "epr10696.26", 0x00000, 0x8000, 0xd734f19f )
/*TODO*///		ROM_LOAD_EVEN( "epr10700.42", 0x10000, 0x8000, 0x3b04b252 )
/*TODO*///		ROM_LOAD_ODD ( "epr10697.25", 0x10000, 0x8000, 0xf2bc123d )
/*TODO*///		ROM_LOAD_EVEN( "10701", 0x20000, 0x8000, 0x92171751 )
/*TODO*///		ROM_LOAD_ODD ( "10698", 0x20000, 0x8000, 0xc1e4fdc0 )
/*TODO*///	
/*TODO*///		ROM_REGION( 0x30000, REGION_GFX1 | REGIONFLAG_DISPOSE );/* tiles */
/*TODO*///		ROM_LOAD( "10739", 0x00000, 0x10000, 0xa29ec207 );
/*TODO*///		ROM_LOAD( "10740", 0x10000, 0x10000, 0x47f93015 );
/*TODO*///		ROM_LOAD( "10741", 0x20000, 0x10000, 0x4970739c );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x080000*2, REGION_GFX2 );/* sprites */
/*TODO*///		ROM_LOAD( "10709.b1", 0x00000, 0x10000, 0xaddf0a90 );
/*TODO*///		ROM_LOAD( "10713.b5", 0x10000, 0x10000, 0xececde3a );
/*TODO*///		ROM_LOAD( "10710.b2", 0x20000, 0x10000, 0x992369eb );
/*TODO*///		ROM_LOAD( "10714.b6", 0x30000, 0x10000, 0x91bf42fb );
/*TODO*///		ROM_LOAD( "10711.b3", 0x40000, 0x10000, 0x29166ef6 );
/*TODO*///		ROM_LOAD( "10715.b7", 0x50000, 0x10000, 0xa7c57384 );
/*TODO*///		ROM_LOAD( "10712.b4", 0x60000, 0x10000, 0x876ad019 );
/*TODO*///		ROM_LOAD( "10716.b8", 0x70000, 0x10000, 0x40ba1d48 );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x28000, REGION_CPU2 );/* sound CPU */
/*TODO*///		ROM_LOAD( "10705", 0x00000, 0x8000, 0x777b749e );
/*TODO*///		ROM_LOAD( "10706", 0x10000, 0x8000, 0xaa114acc );
/*TODO*///		ROM_LOAD( "10707", 0x18000, 0x8000, 0x800c1d82 );
/*TODO*///		ROM_LOAD( "10708", 0x20000, 0x8000, 0x5921ef52 );
/*TODO*///	ROM_END(); }}; 
/*TODO*///	
/*TODO*///	
/*TODO*///	static RomLoadPtr rom_aliensyb = new RomLoadPtr(){ public void handler(){ 
/*TODO*///		ROM_REGION( 0x030000, REGION_CPU1 );/* 68000 code */
/*TODO*///		ROM_LOAD_EVEN( "as_typeb.a4", 0x00000, 0x8000, 0x17bf5304 )
/*TODO*///		ROM_LOAD_ODD ( "as_typeb.a1", 0x00000, 0x8000, 0x4cd134df )
/*TODO*///		ROM_LOAD_EVEN( "as_typeb.a5", 0x10000, 0x8000, 0xc8b791b0 )
/*TODO*///		ROM_LOAD_ODD ( "as_typeb.a2", 0x10000, 0x8000, 0xbdcf4a30 )
/*TODO*///		ROM_LOAD_EVEN( "as_typeb.a6", 0x20000, 0x8000, 0x1d0790aa )
/*TODO*///		ROM_LOAD_ODD ( "as_typeb.a3", 0x20000, 0x8000, 0x1e7586b7 )
/*TODO*///	
/*TODO*///		ROM_REGION( 0x30000, REGION_GFX1 | REGIONFLAG_DISPOSE );/* tiles */
/*TODO*///		ROM_LOAD( "10702.b9",  0x00000, 0x10000, 0x393bc813 );
/*TODO*///		ROM_LOAD( "10703.b10", 0x10000, 0x10000, 0x6b6dd9f5 );
/*TODO*///		ROM_LOAD( "10704.b11", 0x20000, 0x10000, 0x911e7ebc );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x080000*2, REGION_GFX2 );/* sprites */
/*TODO*///		ROM_LOAD( "10709.b1", 0x00000, 0x10000, 0xaddf0a90 );
/*TODO*///		ROM_LOAD( "10713.b5", 0x10000, 0x10000, 0xececde3a );
/*TODO*///		ROM_LOAD( "10710.b2", 0x20000, 0x10000, 0x992369eb );
/*TODO*///		ROM_LOAD( "10714.b6", 0x30000, 0x10000, 0x91bf42fb );
/*TODO*///		ROM_LOAD( "10711.b3", 0x40000, 0x10000, 0x29166ef6 );
/*TODO*///		ROM_LOAD( "10715.b7", 0x50000, 0x10000, 0xa7c57384 );
/*TODO*///		ROM_LOAD( "10712.b4", 0x60000, 0x10000, 0x876ad019 );
/*TODO*///		ROM_LOAD( "10716.b8", 0x70000, 0x10000, 0x40ba1d48 );
/*TODO*///	
/*TODO*///		ROM_REGION( 0x28000, REGION_CPU2 );/* sound CPU */
/*TODO*///		ROM_LOAD( "10723.a7", 0x0000, 0x8000, 0x99953526 );
/*TODO*///		ROM_LOAD( "10724.a8", 0x10000, 0x8000, 0xf971a817 );
/*TODO*///		ROM_LOAD( "10725.a9", 0x18000, 0x8000, 0x6a50e08f );
/*TODO*///		ROM_LOAD( "10726.a10",0x20000, 0x8000, 0xd50b7736 );
/*TODO*///	ROM_END(); }}; 
/*TODO*///	
/*TODO*///	
/*TODO*///	
/*TODO*///	
/*TODO*///	/***************************************************************************/
/*TODO*///	
/*TODO*///	static MemoryReadAddress aliensyn_readmem[] =
/*TODO*///	{
/*TODO*///		new MemoryReadAddress( 0x000000, 0x02ffff, MRA_ROM ),
/*TODO*///		new MemoryReadAddress( 0x400000, 0x40ffff, sys16_tileram_r ),
/*TODO*///		new MemoryReadAddress( 0x410000, 0x410fff, sys16_textram_r ),
/*TODO*///		new MemoryReadAddress( 0x440000, 0x440fff, MRA_BANK2 ),
/*TODO*///		new MemoryReadAddress( 0x840000, 0x840fff, paletteram_word_r ),
/*TODO*///		new MemoryReadAddress( 0xc41002, 0xc41003, input_port_0_r ),
/*TODO*///		new MemoryReadAddress( 0xc41006, 0xc41007, io_player2_r ),
/*TODO*///		new MemoryReadAddress( 0xc41000, 0xc41001, io_service_r ),
/*TODO*///		new MemoryReadAddress( 0xc42002, 0xc42003, io_dip1_r ),
/*TODO*///		new MemoryReadAddress( 0xc42000, 0xc42001, io_dip2_r ),
/*TODO*///		new MemoryReadAddress( 0xc40000, 0xc40fff, MRA_EXTRAM ),
/*TODO*///		new MemoryReadAddress( 0xffc000, 0xffffff, MRA_BANK1 ),
/*TODO*///		new MemoryReadAddress(-1)
/*TODO*///	};
/*TODO*///	
/*TODO*///	static MemoryWriteAddress aliensyn_writemem[] =
/*TODO*///	{
/*TODO*///		new MemoryWriteAddress( 0x000000, 0x02ffff, MWA_ROM ),
/*TODO*///		new MemoryWriteAddress( 0x400000, 0x40ffff, sys16_tileram_w,sys16_tileram ),
/*TODO*///		new MemoryWriteAddress( 0x410000, 0x410fff, sys16_textram_w,sys16_textram ),
/*TODO*///		new MemoryWriteAddress( 0x440000, 0x440fff, MWA_BANK2,sys16_spriteram ),
/*TODO*///		new MemoryWriteAddress( 0x840000, 0x840fff, sys16_paletteram_w, paletteram ),
/*TODO*///		new MemoryWriteAddress( 0xc00006, 0xc00007, sound_command_w ),
/*TODO*///		new MemoryWriteAddress( 0xc40000, 0xc40fff, MWA_EXTRAM ),
/*TODO*///		new MemoryWriteAddress( 0xffc000, 0xffffff, MWA_BANK1,sys16_workingram ),
/*TODO*///		new MemoryWriteAddress(-1)
/*TODO*///	};
/*TODO*///	
/*TODO*///	/***************************************************************************/
/*TODO*///	
/*TODO*///	static void aliensyn_update_proc( void ){
/*TODO*///		sys16_fg_scrollx = READ_WORD( &sys16_textram[0x0e98] );
/*TODO*///		sys16_bg_scrollx = READ_WORD( &sys16_textram[0x0e9a] );
/*TODO*///		sys16_fg_scrolly = READ_WORD( &sys16_textram[0x0e90] );
/*TODO*///		sys16_bg_scrolly = READ_WORD( &sys16_textram[0x0e92] );
/*TODO*///	
/*TODO*///		set_fg_page( READ_WORD( &sys16_textram[0x0e80] ) );
/*TODO*///		set_bg_page( READ_WORD( &sys16_textram[0x0e82] ) );
/*TODO*///	
/*TODO*///		set_refresh( READ_WORD( &sys16_extraram[0] ) ); // 0xc40001
/*TODO*///	}
/*TODO*///	
/*TODO*///	public static InitMachinePtr aliensyn_init_machine = new InitMachinePtr() { public void handler() {
/*TODO*///		static int bank[16] = { 0,0,0,0,0,0,0,6,0,0,0,4,0,2,0,0 };
/*TODO*///		sys16_obj_bank = bank;
/*TODO*///		sys16_bg_priority_mode=1;
/*TODO*///		sys16_fg_priority_mode=1;
/*TODO*///	
/*TODO*///		sys16_update_proc = aliensyn_update_proc;
/*TODO*///	} };
/*TODO*///	
/*TODO*///	static void aliensyn_sprite_decode( void ){
/*TODO*///		sys16_sprite_decode( 4,0x20000 );
/*TODO*///	}
/*TODO*///	
/*TODO*///	public static InitDriverPtr init_aliensyn = new InitDriverPtr() { public void handler() 
/*TODO*///	{
/*TODO*///		sys16_onetime_init_machine();
/*TODO*///		sys16_bg1_trans=1;
/*TODO*///		aliensyn_sprite_decode();
/*TODO*///	} };
/*TODO*///	
/*TODO*///	/***************************************************************************/
/*TODO*///	
/*TODO*///	static InputPortPtr input_ports_aliensyn = new InputPortPtr(){ public void handler() { 
/*TODO*///		SYS16_JOY1
/*TODO*///		SYS16_JOY2
/*TODO*///		SYS16_SERVICE
/*TODO*///		SYS16_COINAGE
/*TODO*///	
/*TODO*///	PORT_START(); 	/* DSW1 */
/*TODO*///		PORT_DIPNAME( 0x01, 0x01, DEF_STR( "Unused") );
/*TODO*///		PORT_DIPSETTING(    0x01, DEF_STR( "Off") );
/*TODO*///		PORT_DIPSETTING(    0x00, DEF_STR( "On") );
/*TODO*///		PORT_DIPNAME( 0x02, 0x00, DEF_STR( "Demo_Sounds") );
/*TODO*///		PORT_DIPSETTING(    0x02, DEF_STR( "Off") );
/*TODO*///		PORT_DIPSETTING(    0x00, DEF_STR( "On") );
/*TODO*///		PORT_DIPNAME( 0x0c, 0x0c, DEF_STR( "Lives") );
/*TODO*///		PORT_DIPSETTING(    0x08, "2" );
/*TODO*///		PORT_DIPSETTING(    0x0c, "3" );
/*TODO*///		PORT_DIPSETTING(    0x04, "4" );
/*TODO*///		PORT_BITX( 0,       0x00, IPT_DIPSWITCH_SETTING | IPF_CHEAT, "127", IP_KEY_NONE, IP_JOY_NONE );
/*TODO*///		PORT_DIPNAME( 0x30, 0x30, "Timer" );
/*TODO*///		PORT_DIPSETTING(    0x00, "120" );
/*TODO*///		PORT_DIPSETTING(    0x10, "130" );
/*TODO*///		PORT_DIPSETTING(    0x20, "140" );
/*TODO*///		PORT_DIPSETTING(    0x30, "150" );
/*TODO*///		PORT_DIPNAME( 0xc0, 0xc0, DEF_STR( "Difficulty") );
/*TODO*///		PORT_DIPSETTING(    0x80, "Easy" );
/*TODO*///		PORT_DIPSETTING(    0xc0, "Normal" );
/*TODO*///		PORT_DIPSETTING(    0x40, "Hard" );
/*TODO*///		PORT_DIPSETTING(    0x00, "Hardest" );
/*TODO*///	INPUT_PORTS_END(); }}; 
/*TODO*///	
/*TODO*///	/***************************************************************************/
/*TODO*///	
/*TODO*///	static struct UPD7759_interface aliensyn_upd7759_interface =
/*TODO*///	{
/*TODO*///		1,			/* 1 chip */
/*TODO*///		480000,
/*TODO*///		{ 60 }, 	/* volumes */
/*TODO*///		{ REGION_CPU2 },			/* memory region 3 contains the sample data */
/*TODO*///	    UPD7759_SLAVE_MODE,
/*TODO*///		{ sound_cause_nmi }