⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 postprocess.pl

📁 Windows上的精简Linux系统
💻 PL
字号:
#!/usr/bin/perl## -----------------------------------------------------------------------##   ##   Copyright 2001 H. Peter Anvin - All Rights Reserved####   This program is free software; you can redistribute it and/or modify##   it under the terms of the GNU General Public License as published by##   the Free Software Foundation, Inc., 53 Temple Place Ste 330,##   Bostom MA 02111-1307, USA; either version 2 of the License, or##   (at your option) any later version; incorporated herein by reference.#### -----------------------------------------------------------------------## $Id: postprocess.pl,v 1.3 2003/07/01 00:50:23 hpa Exp $## Postprocess the memdisk binary.#eval { use bytes; };($out,$file16,$file32) = @ARGV;open(OUT, "> $out\0") or die "$0: Cannot create file: $out\n";eval { binmode OUT; };open(FILE, "< $file16\0") or die "$0: Cannot open file: $file16\n";eval { binmode FILE };@info = stat(FILE);$size = $info[7];$sectors = ($size + 511) >> 9;$xsize = $sectors << 9;read(FILE, $f16, $size);print OUT $f16;if ( $size != $xsize ) {    # Pad to a sector boundary    print OUT "\0" x ($xsize-$size);}seek(OUT, 0x1f1, SEEK_SET);	# setup_sects# All sectors are setup except the firstprint OUT pack("C", $sectors-1);seek(OUT, $xsize, SEEK_SET);close(FILE);open(FILE, "+< $file32\0") or die "$0: Cannot open file: $file32\n";while ( ($n = read(FILE, $f32, 65536)) > 0 ) {    print OUT $f32;}close(FILE);close(OUT);

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -