public static WriteHandlerPtr get_text_tile_info = new WriteHandlerPtr() { public void handler(int col, int row){
		UShortPtr source = new UShortPtr(sys16_textram);
		int tile_number = source.read(row*64+col + (64-40));
		int pri = tile_number >> 8;
		if(sys16_textmode==0)
		{
			SET_TILE_INFO( 0, (tile_number&0x1ff) + sys16_tile_bank0 * 0x1000, (tile_number>>9)%8 );
		}
		else
		{
			SET_TILE_INFO( 0, (tile_number&0xff)  + sys16_tile_bank0 * 0x1000, (tile_number>>8)%8 );
		}
		if(pri>=sys16_textlayer_lo_min && pri<=sys16_textlayer_lo_max)
			tile_info.priority = 1;
		if(pri>=sys16_textlayer_hi_min && pri<=sys16_textlayer_hi_max)
			tile_info.priority = 0;
	} }