public static ReadHandlerPtr bankedram_r = new ReadHandlerPtr() { public int handler(int offset)
	{
		if ((videobank & 0x01)!=0)
		{
			if ((videobank & 0x04)!=0)
				return paletteram_r.handler(offset + 0x0800);
			else
				return paletteram_r.handler(offset);
		}
		else
			return ram.read(offset);
	} }