public static WriteHandlerPtr sys16_textram_w = new WriteHandlerPtr() { public void handler(int offset, int data){
		int oldword = sys16_textram.READ_WORD(offset);
		int newword = COMBINE_WORD(oldword,data);
		if( oldword != newword ){
			int row,col;
			sys16_textram.WRITE_WORD(offset,newword);
			offset = (offset/2);
			col = (offset%64);
			row = offset/64;
			col -= (64-40);
			if( col>=0 && col<40 && row<28 ){
				tilemap_mark_tile_dirty( text_layer, col, row );
			}
		}
	} }