|
硬盘分区的恢复与备份
[这个贴子最后由gotomsdos在 2005/04/30 03:14pm 第 1 次编辑]
debug 的-a -g才是汇编. 其他的 debug 命令是自身的,好象不属于汇编的,我除了读写MBR外,不懂汇编,但会用debug,只要了解磁盘结构和DOS操作系统就行
下面我贴一个我用debug,WBAT和get写的改小游戏成绩的小程序的主要代码
DOS游戏名为 skyroads 可能有些老鸟玩过的
@echo off
if exist crack del crack
echo n z:\skyroads\skyroads.cfg>>crack
echo l0>>crack
if "%1"=="" goto end
echo e 6 %1 00>>crack
set get=6
shift
:crack
if "%1"=="" goto end
get r "+" $%get% /w2 /h
echo e %get% %1 00>>crack
shift
goto crack
:end
echo rcx>>crack
echo 42>>crack
echo w0>>crack
echo q>>crack
debug<crack
del crack
wbat box "要不劳而获吗?" 要,不要
if errorlevel 2 goto played
:dovalue
call w.bat box @%0:cheat
if errorlevel 4 goto played
if errorlevel 3 goto modgame
if errorlevel 2 goto zero
call allcheat
goto dovalue
:zero
call prevar
goto dovalue
:modgame
call crackarg
wbat box "要重新运行游戏,看一下不劳而获的结果吗?" 看一下,不想看
if errorlevel 2 goto played
goto seecheat
:cheat "自欺欺人对话框" [x]
track1 [$t1 1] track16 [$t16 1]
track2 [$t2 1] track17 [$t17 1]
track3 [$t3 1] track18 [$t18 1]
track4 [$t4 1] track19 [$t19 1]
track5 [$t5 1] track20 [$t20 1]
track6 [$t6 1] track21 [$t21 1]
track7 [$t7 1] track22 [$t22 1]
track8 [$t8 1] track23 [$t23 1]
track9 [$t9 1] track24 [$t24 1]
track10 [$t10 1] track25 [$t25 1]
track11 [$t11 1] track26 [$t26 1]
track12 [$t12 1] track27 [$t27 1]
track13 [$t13 1] track28 [$t28 1]
track14 [$t14 1] track29 [$t29 1]
track15 [$t15 1] track30 [$t30 1]
[全部设为最大值] [全部设为最小值] [确定] [返回]
: |
|