|
3#
楼主 |
发表于 2012-4-23 12:01:54
|
只看该作者
第二版,加上普通链式引导的代码:- !BAT
- debug off
- checkrange 20111001:-1 read 0x8278 || echo Err.version && exit 1
- checkrange 524:-1 calc *0x413 & 0xffff || map --int15nolow=1 && pause Warnning: less memory
- cat (md)0x20001+1 | set string1=
- call :jump %string1%
- :jump
- checkrange 1 read 0x603FE && command %~dp0/F6IMG %~dp0/SRS || echo No SRS!
- if /i "%~x1"=="" set file=%1 && call :chainload %file%
- goto :R%~x1
- :R.img
- :R.lzma
- :R.gz
- :R.ima
- debug 1
- checkrange 1 read 0x603FD || map %1 (fd0) || map --mem %1 (fd0)
- checkrange 0 read 0x603FD && set file=%1 && goto :hd
- if not exist (fd1)/TXTSETUP.SIF map --mem %~p0/WVBlock.IMG (fd1)
- map --hook
- chainloader (fd0)
- rootnoverify (fd0)
- boot
- :R.iso
- debug 1
- map %1 (0xFF) || map --mem %1 (0xFF)
- if not exist (fd1)/TXTSETUP.SIF map --mem %~ dp0/WVBlock.IMG (fd1)
- map --hook
- chainloader (0xFF)
- root (0xFF)
- boot
- :hd
- command %~dp0/movehd
- map %file% (hd0) || map --mem %file% (hd0)
- if not exist (fd1)/TXTSETUP.SIF map --mem %~dp0/WVBlock.IMG (fd1)
- map --hook
- chainloader (hd0)+1
- rootnoverify (hd0,0) || rootnoverify (hd0)
- boot
- :R.BIN
- :chainload
- checkrange 0x21 read 0x8280 || chainloader --force %1 ! chainloader --raw %1
- root %~d1
- boot
复制代码
[ 本帖最后由 2011czmxbb52 于 2012-4-23 12:18 编辑 ] |
|