public static konami_cpu_setlines_callbackPtr blockhl_banking = new konami_cpu_setlines_callbackPtr() { public void handler(int lines)
        {
                UBytePtr RAM = memory_region(REGION_CPU1);
		int offs;
	
		/* bits 0-1 = ROM bank */
		rombank = lines & 0x03;
		offs = 0x10000 + (lines & 0x03) * 0x2000;
		cpu_setbank(1,new UBytePtr(RAM,offs));
	
		/* bits 3/4 = coin counters */
		coin_counter_w.handler(0,lines & 0x08);
		coin_counter_w.handler(1,lines & 0x10);
	
		/* bit 5 = select palette RAM or work RAM at 5800-5fff */
		palette_selected = ~lines & 0x20;
	
		/* bit 6 = enable char ROM reading through the video RAM */
		K052109_set_RMRD_line( ( lines & 0x40 )!=0 ? ASSERT_LINE : CLEAR_LINE );
	
		/* bit 7 used but unknown */
	
		/* other bits unknown */
	
                if (errorlog!=null && (lines & 0x84) != 0x80) fprintf(errorlog,"%04x: setlines %02x\n",cpu_get_pc(),lines);
	}}