public static konami_cpu_setlines_callbackPtr simpsons_banking = new konami_cpu_setlines_callbackPtr() { public void handler(int lines)
        {
		UBytePtr RAM = memory_region(REGION_CPU1);
		int offs = 0;
	
		switch ( lines & 0xf0 )
		{
			case 0x00: /* simp_g02.rom */
				offs = 0x10000 + ( ( lines & 0x0f ) * 0x2000 );
			break;
	
			case 0x10: /* simp_p01.rom */
				offs = 0x30000 + ( ( lines & 0x0f ) * 0x2000 );
			break;
	
			case 0x20: /* simp_013.rom */
				offs = 0x50000 + ( ( lines & 0x0f ) * 0x2000 );
			break;
	
			case 0x30: /* simp_012.rom ( lines goes from 0x00 to 0x0c ) */
				offs = 0x70000 + ( ( lines & 0x0f ) * 0x2000 );
			break;
	
			default:
				if (errorlog != null)
					fprintf( errorlog, "PC = %04x : Unknown bank selected (%02x)\n", cpu_get_pc(), lines );
			break;
		}
	
		cpu_setbank( 1, new UBytePtr(RAM,offs) );
	}}