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

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

?? wosfs_maker.pl

?? 一款基于FPGA的對于VGA實現全彩控制的程序
?? 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一区二区三区免费野_久草精品视频
精品国产sm最大网站| 亚洲精品乱码久久久久久黑人| 国产精品免费av| 91精品福利在线一区二区三区| 欧美综合视频在线观看| 91丝袜美女网| 99精品久久99久久久久| 日韩欧美国产一区二区三区| 亚洲自拍都市欧美小说| 成人精品视频.| 精品免费一区二区三区| 亚洲不卡av一区二区三区| av在线不卡观看免费观看| 精品国产区一区| 日韩国产欧美在线播放| 97久久精品人人澡人人爽| 在线观看免费亚洲| 制服丝袜日韩国产| 久久久久国产免费免费| 日韩一区在线免费观看| 国产高清成人在线| 日韩欧美国产成人一区二区| 午夜影视日本亚洲欧洲精品| 欧美专区日韩专区| 精品久久久久久久久久久久包黑料| 亚洲成人你懂的| 久久99精品久久久久| www..com久久爱| 91福利视频在线| 日韩欧美一二三| 亚洲美女电影在线| 97精品国产露脸对白| 亚洲欧美怡红院| 色8久久人人97超碰香蕉987| 亚洲一二三区视频在线观看| 在线观看日韩电影| 丝袜国产日韩另类美女| 懂色av一区二区三区免费观看| 国产亚洲人成网站| 成人国产一区二区三区精品| 国产精品国产三级国产aⅴ入口| 视频在线观看91| 成人av网站免费观看| 日韩视频免费直播| 麻豆一区二区三区| 久久久精品国产免大香伊| 福利电影一区二区| 亚洲男人天堂av| 欧美日韩国产精选| 亚洲欧美日韩在线播放| 欧美亚洲综合网| 欧美激情中文字幕一区二区| 日韩激情中文字幕| 91丨porny丨在线| 亚洲乱码中文字幕| 欧美精品日日鲁夜夜添| 久久国产婷婷国产香蕉| 国产欧美日韩精品一区| 色呦呦网站一区| 国产欧美一区二区三区在线看蜜臀| 成人va在线观看| 视频在线观看91| 国产欧美日韩视频在线观看| 91福利在线播放| 狠狠色狠狠色综合| 亚洲伦理在线免费看| 精品免费99久久| 91黄色免费网站| 国产一区福利在线| 久久丝袜美腿综合| 色天使色偷偷av一区二区| 麻豆国产欧美一区二区三区| 国产精品麻豆99久久久久久| 成人一级片网址| 丝袜亚洲另类丝袜在线| 欧美手机在线视频| 成人一区在线看| 久久99精品国产.久久久久| 亚洲裸体在线观看| 精品欧美久久久| 欧美日韩电影一区| 日韩精品高清不卡| 亚洲欧美另类小说| 国产亚洲综合性久久久影院| 欧美肥大bbwbbw高潮| 天天色天天操综合| 亚洲欧洲无码一区二区三区| av电影一区二区| 久久机这里只有精品| 久久久91精品国产一区二区精品 | 一区二区中文视频| 99久久精品费精品国产一区二区| 中文字幕一区二区三区在线不卡| 日韩欧美卡一卡二| 51精品久久久久久久蜜臀| 免费av网站大全久久| 亚洲电影欧美电影有声小说| 18涩涩午夜精品.www| 久久综合99re88久久爱| 成人美女在线视频| 国产福利91精品| 精品一区二区三区在线播放| 午夜不卡av免费| 国产色产综合产在线视频| 亚洲精品一线二线三线| 欧美成人精品1314www| 国产99久久久久久免费看农村| 一区二区中文视频| 欧美一区二区美女| 国产精品亚洲午夜一区二区三区 | 91精品国产综合久久香蕉的特点| 麻豆国产精品777777在线| 亚洲国产精品久久不卡毛片| 欧美va天堂va视频va在线| 欧美一区二区三区的| 91精品国产黑色紧身裤美女| 国产成人免费视频网站| 国产精品小仙女| 成人性视频免费网站| 风流少妇一区二区| 色综合中文字幕| 欧美日韩你懂的| 日韩一区二区免费电影| av一二三不卡影片| 在线亚洲一区观看| 国产69精品久久99不卡| 日韩av在线发布| 捆绑调教美女网站视频一区| 精品一区二区综合| 国产91精品久久久久久久网曝门 | 美女性感视频久久| 韩日av一区二区| 国产a久久麻豆| 一本一道波多野结衣一区二区| 色香蕉成人二区免费| 欧美日韩国产经典色站一区二区三区| 91麻豆精品国产91久久久久久| 日韩一区二区三区视频在线 | 欧美日韩亚洲另类| 777奇米四色成人影色区| 91色乱码一区二区三区| 国产福利91精品一区二区三区| 91亚洲精品一区二区乱码| 精品视频在线免费看| 精品成人a区在线观看| 国产日韩欧美电影| 精品va天堂亚洲国产| 欧美一区二区三区免费| 欧美日韩国产一区| 国产欧美一区在线| 性做久久久久久久免费看| 国内一区二区在线| 欧美在线制服丝袜| 欧美三级韩国三级日本三斤| 色婷婷久久一区二区三区麻豆| 99精品视频一区二区三区| 717成人午夜免费福利电影| 欧美午夜精品免费| 久久亚洲捆绑美女| 国产网站一区二区| 国产女人18水真多18精品一级做| 久久综合九色综合欧美98| 欧美成人aa大片| 亚洲乱码精品一二三四区日韩在线| 亚洲色图.com| 亚洲资源中文字幕| 国产成人免费xxxxxxxx| 欧美日韩精品电影| 欧美一区二区三区啪啪| 亚洲欧美韩国综合色| 国产一区二区三区在线观看免费视频| 色婷婷久久久久swag精品 | 69成人精品免费视频| 中文字幕乱码日本亚洲一区二区 | 国产激情一区二区三区四区| 欧美日韩一卡二卡| 欧美日韩精品免费| 日韩视频一区二区三区在线播放| 亚洲欧美一区二区三区国产精品 | 久久久精品日韩欧美| 国产精品欧美久久久久无广告| 日本大胆欧美人术艺术动态| 日本在线不卡视频| 国产精一区二区三区| 成人精品视频.| 欧美日韩在线播放一区| 成人欧美一区二区三区1314| 国产激情一区二区三区| 欧美亚洲一区二区在线| ...av二区三区久久精品| 国产99精品在线观看| 91麻豆国产福利在线观看| 国产精品毛片a∨一区二区三区| 国产一区二区视频在线| 色诱亚洲精品久久久久久| 成人免费在线播放视频| 91蜜桃传媒精品久久久一区二区| 国产日韩欧美精品一区| 天堂精品中文字幕在线| 欧美一区二区三区的|