亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? wosfs_maker.pl

?? 很多儀器都輸出同步時鐘
?? PL
字號:
#!perl

#Copyright (C)1991-2003 Altera Corporation
#Any megafunction design, and related net list (encrypted or decrypted),
#support information, device programming or simulation file, and any other
#associated documentation or information provided by Altera or a partner
#under Altera's Megafunction Partnership Program may be used only to
#program PLD devices (but not masked PLD devices) from Altera.  Any other
#use of such megafunction design, net list, support information, device
#programming or simulation file, or any other related documentation or
#information is prohibited for any other purpose, including, but not
#limited to modification, reverse engineering, de-compiling, or use with
#any other silicon devices, unless such use is explicitly licensed under
#a separate agreement with Altera or a megafunction partner.  Title to
#the intellectual property, including patents, copyrights, trademarks,
#trade secrets, or maskworks, embodied in any such megafunction design,
#net list, support information, device programming or simulation file, or
#any other related documentation or information provided by Altera or a
#megafunction partner, remains with Altera, the megafunction partner, or
#their respective licensors.  No other licenses, including any licenses
#needed under any third party's intellectual property, are provided herein.
#Copying or modifying any file, or portion thereof, to which this notice
#is attached violates this copyright.







#
# wosfs_maker is for authoring a wosfs file
# system.
#
#

use Strict;


my $kWOSFS_Signature = 0x89674523;
my $kWOSFS_FileNameSize = 32;
my $kWOSFS_VolumeHeaderSize = 8;	# bytes
my $kWOSFS_DirectoryEntrySize = $kWOSFS_FileNameSize + 8;

my $kWOSFS_flashBegin = 0x160000;
my $kWOSFS_flashEnd = 0x180000;

$gDebug = 1;
$gDebug = 0;

sub dprint
	{
	print @_ if($gDebug);
	}

sub usage
	{
	print <<EOP;

   usage: wosfs_maker [--start <start address>] [--end <end address>] file1 [file2...]

   wosfs_maker prints germsmon output for
   creating a flash image in the wosfs format.

   The image contains all the files in the
   command line. WOSFS is a flat file system,
   but the names of files can contain slashes.
   For use with the nedk example web server,
   this lets you create traditional-looking
   URL's like
   http://mynios.com/subdir/index.html. The
   start and end addresses should be the
   lowest and highest part of flash memory to
   store the image in.

EOP

	exit 0;
	}


# ------------------------------------
# emitGermsWrites(flash_start, flash_end, content, filesList)
#
sub emitGermsWrites
	{
	my $address = shift;
	my $address_end = shift;
	my $content = shift;

	my $i;
	my $thisLine;
	my $x;

	print <<EOP;
#
# This file generated by wosfs_maker.pl
#
# Contains the following files in wosfs_format
#
EOP
	while($i = shift)
		{
		print "#    $i\n";
		}
	
	print <<EOP;
#
#
# Wosfs file system installed at locations
EOP

	printf("#      0x%08x - 0x%08x\n#\n",$address,$address_end);

	for($i = $address; $i < $address_end; $i += 0x10000)
		{
		printf("e%08x\n",$i);
		if($i == 0x100000)	# funniness at the bottom of flash "hahaha!"
			{
			print "e00104000\n";
			print "e00106000\n";
			print "e00108000\n";
			}
		}


	while ($content)
		{
		$thisLine = length($content);
		$thisLine = 16 if($thisLine > 16);


		printf("m%08x:",$address);
		$address += $thisLine;

		$thisLine = $thisLine / 2;
		for($i = 0; $i < $thisLine; $i++)
			{
			$x = substr($content,0,2);
			$content = substr($content,2);
			printf "%04x", unpack("S",$x);
			print " " if ($i < $thisLine - 1);
			}
		print "\n";


		}
	}


# -------------------------------------
# parseArgs
#
# Given a list of arguments, return
# a hash where the keys and values
# are taken from those arguments of
# the form "--key=value". The hyphens
# disappear from the key name.
#
# A command line switch of "--key"
# is equivalent to "--key=1".
#
# a special key named _argc contains
# a count of non-dash-dash arguments,
# and they are in the hash as {0}, {1},
# and so on.

sub parseArgs
	{
	my $arg;
	my $argVal;
	my $argc;
	my %hash;

	$argc = 0;


	while($arg = shift)
		{
		if($arg =~ /^--(.*)$/)
			{
			$arg = $1;

			if($arg =~ /^(.*)\=(.*)$/)
				{
				$arg = $1;
				$argVal = $2;
				}
			else
				{
				$argVal = 1;
				}

			$hash{$arg} = $argVal;
			}
		else
			{
			$hash{$argc++} = $arg;
			}
		}
	
	$hash{_argc} = $argc;

	return %hash;
	}

# -------------------------------
# getSwitch(hashRef, switchName, defaultValue [, mustBeNumber])
#
# Look at a hash as returned by parseArgs, and
# give the value of the switch, or the defaultValue
# if it was not specified in the command line.

sub getSwitch
	{
	my $hashRef = shift;
	my $switchName = shift;
	my $defaultValue = shift;
	my $mustBeNumber = shift;

	my $switchValue;

	$switchValue = $$hashRef{$switchName};
	$switchValue = $defaultValue if ($switchValue eq "");

	# |
	# | Handle 0x Hex Numbers
	# |

	if($switchValue =~ /^0x(.*)$/)
		{
		$switchValue = hex($1);
		}

	$switchValue *= 1 if ($mustBeNumber);

	return $switchValue;
	}
	
# -------------------------------------
# 
sub main
	{
	my %switches;
	my $wosfs_flash_start;
	my $wosfs_flash_end;

	my $i;
	my $volumeSize;
	my @fileList;
	my $fileCount;
	my $allFilesContent = "";
	my $aFileContent;

	my $volumeHeader;
	my $directoryEntry;
	my $volumePosition;

	my $volumeContent = "";

	$volumeSize = $kWOSFS_VolumeHeaderSize;

	%switches = parseArgs(@_);
	$fileCount = getSwitch(\%switches,"_argc",0);

	# |
	# | --help? just show help and quit
	# |

	if(getSwitch(\%switches,"help",0) or $fileCount == 0)
		{
		usage();
		exit 0;
		}

	# |
	# | From the switches hash, extract start & end values
	# |

	$wosfs_flash_start = getSwitch(\%switches,"start",$kWOSFS_flashBegin);
	$wosfs_flash_end = getSwitch(\%switches,"end",$kWOSFS_flashEnd);

	# |
	# | From the switches hash, extract the requested files
	# |

	$fileCount = getSwitch(\%switches,"_argc",0);
	for($i = 0; $i < $fileCount; $i++)
		{
		push(@fileList,getSwitch(\%switches,$i,""));
		}
		
	$volumeContent = pack("LL",$kWOSFS_Signature,$fileCount);

	$volumePosition = $kWOSFS_VolumeHeaderSize +
			$fileCount * $kWOSFS_DirectoryEntrySize;

	dprint "first file goes at $volumePosition\n";
	dprint "$kWOSFS_VolumeHeaderSize + $fileCount * $kWOSFS_DirectoryEntrySize\n";

	foreach $arg (@fileList)
		{
		open (FILE,$arg) or die "could not open $arg";
		binmode(FILE);
		read (FILE,$aFileContent,2000000);		# maximum file size
		close (FILE);

		my $fileLength = length($aFileContent);

		# Pad to even file size
		if(length($aFileContent) & 1)
			{
			$aFileContent .= "\000";
			$fileLength++;
			}

    # If the filename is too big, brutally truncate.
    if (length($arg) > $kWOSFS_FileNameSize - 1)
    {
      print STDERR "truncating filename '$arg' to ";
      $arg = substr($arg, 0, $kWOSFS_FileNameSize - 1);
      print STDERR "'$arg'\n";
    }
		# append the directory entry to the volume
		$volumeContent .= pack("a${kWOSFS_FileNameSize}LL",$arg,
				$volumePosition,
				$fileLength);

		$volumePosition += $fileLength;

		# save all the byte from this file
		$allFilesContent .= $aFileContent;
		}
	
	#
	# and lastly, append the file's bytes to the volume
	#

	$volumeContent .= $allFilesContent;

	dprint $volumeContent,"\n";

	emitGermsWrites($wosfs_flash_start,$wosfs_flash_end,$volumeContent,@fileList);

	}


main(@ARGV);

# end of file

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
欧美日韩国产系列| 不卡的电影网站| 欧美一级日韩免费不卡| 五月天欧美精品| 欧美一级午夜免费电影| 国产一区二区三区免费播放 | 欧美精品久久天天躁| 亚洲va中文字幕| 日韩欧美国产三级| 国产美女精品在线| 国产精品久久久久9999吃药| 色综合天天天天做夜夜夜夜做| 一区二区三区在线播放| 91精品国产麻豆国产自产在线| 激情综合亚洲精品| 欧美激情中文字幕一区二区| 91九色最新地址| 免费亚洲电影在线| 国产精品久久久久四虎| 欧美军同video69gay| 国产麻豆视频一区| 亚洲资源在线观看| 久久综合九色综合欧美亚洲| 99久精品国产| 日本免费新一区视频| 国产蜜臀97一区二区三区| 欧美午夜精品理论片a级按摩| 九九国产精品视频| 亚洲精品你懂的| 2020日本不卡一区二区视频| 色激情天天射综合网| 国产麻豆精品theporn| 亚洲午夜免费视频| 国产欧美日韩精品a在线观看| 欧美日本国产视频| 99麻豆久久久国产精品免费| 日本不卡一二三区黄网| 中文字幕色av一区二区三区| 日韩精品一区二区三区四区视频 | 欧美电视剧在线看免费| 99久久伊人久久99| 另类欧美日韩国产在线| 亚洲综合一区在线| 欧美国产精品久久| 日韩欧美的一区| 欧美日韩国产另类不卡| 99精品一区二区三区| 3atv一区二区三区| 97精品电影院| 国产一区二区三区美女| 天堂成人国产精品一区| 一区二区三区在线免费视频| 欧美国产精品一区二区三区| 日韩一区二区三区高清免费看看 | 蜜桃久久精品一区二区| 亚洲一二三区视频在线观看| 国产精品每日更新| 国产网站一区二区| 日韩女同互慰一区二区| 欧美电影影音先锋| 欧美性大战久久| 欧美怡红院视频| 欧美在线高清视频| 精品视频在线免费观看| 欧美在线不卡一区| 一本在线高清不卡dvd| 91免费视频网| 91亚洲精品一区二区乱码| 99视频精品全部免费在线| 成人爱爱电影网址| 成人免费毛片aaaaa**| 国产一区二区精品久久| 久久av老司机精品网站导航| 一区二区三区在线高清| 综合久久久久久久| 欧美国产激情一区二区三区蜜月| 国产亚洲自拍一区| 精品久久久久久综合日本欧美| 欧美日韩国产中文| 色天天综合久久久久综合片| 成人av网址在线| 国产 日韩 欧美大片| 国内不卡的二区三区中文字幕| 亚洲欧美激情在线| 亚洲欧美日韩在线不卡| 一区二区中文字幕在线| 国产农村妇女毛片精品久久麻豆| 2021中文字幕一区亚洲| 精品久久人人做人人爽| 日韩欧美电影一二三| 日韩精品在线一区| 日韩一级二级三级| 久久久五月婷婷| 中文字幕二三区不卡| 国产欧美日韩在线观看| 中文字幕免费不卡| 国产精品丝袜在线| 亚洲欧美日韩电影| 最新久久zyz资源站| 亚洲成人黄色影院| 日本中文在线一区| 久久精品99国产精品| 激情丁香综合五月| 丰满少妇在线播放bd日韩电影| 国产成人av一区| 99综合电影在线视频| 51午夜精品国产| 精品国产a毛片| 国产精品久久久久婷婷二区次| 欧美激情综合网| 亚洲午夜久久久久中文字幕久| 日韩激情在线观看| 蜜桃一区二区三区四区| 国产成人欧美日韩在线电影| 91免费小视频| 91精品欧美久久久久久动漫| 一级精品视频在线观看宜春院| 蜜桃av一区二区三区| 国产九色sp调教91| 99精品视频一区| 欧美精品三级在线观看| 国产情人综合久久777777| 欧美激情在线一区二区三区| 视频一区二区不卡| 国产精品一区二区你懂的| av中文字幕在线不卡| 欧美日韩高清不卡| 精品成人在线观看| 亚洲免费av高清| 香蕉久久夜色精品国产使用方法| 丰满岳乱妇一区二区三区| 欧美午夜精品免费| 久久香蕉国产线看观看99| 亚洲精品视频在线| 精东粉嫩av免费一区二区三区| 97久久人人超碰| 精品国精品国产| 伊人夜夜躁av伊人久久| 狠狠色综合日日| 色婷婷一区二区| 久久久蜜桃精品| 香蕉久久一区二区不卡无毒影院 | 成人午夜碰碰视频| 欧美精品乱人伦久久久久久| 国产亚洲美州欧州综合国| 精品国产欧美一区二区| 天天色天天操综合| 波多野结衣中文字幕一区| 欧美一区二视频| 怡红院av一区二区三区| 国产精品一二三区| 91精品国产综合久久精品麻豆 | 欧美国产1区2区| 青青草国产精品97视觉盛宴 | 亚洲一线二线三线视频| www.av亚洲| 久久久电影一区二区三区| 亚洲成人精品在线观看| 色综合久久88色综合天天免费| 久久尤物电影视频在线观看| 日韩精品欧美精品| 91亚洲精华国产精华精华液| 国产精品毛片久久久久久久| 国产毛片精品一区| 欧美一级免费大片| 五月综合激情婷婷六月色窝| 91黄色免费观看| 国产精品美女视频| 国产露脸91国语对白| 亚洲精品一区二区三区四区高清| 午夜视频在线观看一区| 欧洲国产伦久久久久久久| 1000部国产精品成人观看| 成人av片在线观看| 亚洲精品日日夜夜| 一本大道av伊人久久综合| 亚洲天堂成人在线观看| 成人激情文学综合网| 欧美激情综合五月色丁香小说| 国产一区亚洲一区| 欧美mv日韩mv国产网站| 青青草97国产精品免费观看无弹窗版| 欧美人狂配大交3d怪物一区| 亚洲一区在线电影| 欧美性三三影院| 午夜久久久久久| 欧美在线短视频| 麻豆一区二区三区| 欧美r级在线观看| 国产一区中文字幕| 国产日韩欧美不卡| 成人精品小蝌蚪| 不卡的av电影| 一区二区三区免费网站| 欧美午夜理伦三级在线观看| 亚洲大片精品永久免费| 欧美一区二区三区喷汁尤物| 日韩影院免费视频| 国产清纯在线一区二区www| 成人蜜臀av电影|