public static WriteHandlerPtr galaga_sharedram_w = new WriteHandlerPtr() { public void handler(int offset, int data)
	{
		if (offset < 0x800)		/* write to video RAM */
			dirtybuffer[offset & 0x3ff] = 1;
	
		galaga_sharedram.write(offset,data);
	} }