public static konami_cpu_setlines_callbackPtr crimfght_banking = new konami_cpu_setlines_callbackPtr() { public void handler(int lines)
        {
		UBytePtr RAM = memory_region(REGION_CPU1);
		int offs = 0;
	
		/* bit 5 = select work RAM or palette */
		if ((lines & 0x20)!=0){
			cpu_setbankhandler_r (1, paletteram_r);							/* palette */
			cpu_setbankhandler_w (1, paletteram_xBBBBBGGGGGRRRRR_swap_w);	/* palette */
		}
		else{
			cpu_setbankhandler_r (1, mrh_ram);								/* RAM */
			cpu_setbankhandler_w (1, mwh_ram);								/* RAM */
		}
	
		/* bit 6 = enable char ROM reading through the video RAM */
		K052109_set_RMRD_line((lines & 0x40)!=0 ? ASSERT_LINE : CLEAR_LINE);
	
		offs = 0x10000 + ( ( lines & 0x0f ) * 0x2000 );
		cpu_setbank( 2, new UBytePtr(RAM,offs) );
	}}