Click to See Complete Forum and Search --> : 'Debug' usage in disk editting


RightPilot
August 23rd, 2005, 10:18 AM
I have the following debug script that I use. I wish to understand it to make changes to it. I am familiar with debug. But I can't understand the "e ds:0610 command...particularly the 'ds' part. Is it assembeler code? Similarly I have lack understanding of "rf", "nz", and "zr". Can you please get me started or point to a resource.

Thanks,
Right


g 0b2a
e ds:0610
04
e ds:0611
9c
e ds:0612
63
p
f ds:05c5 05ff 20
e ds:0613
0d
e ds:0614
0a
g 030d
t
g 0054
rf
nz
g 019d
rf
zr
g 01cd
rf
zr
g 0225
rf
zr
g
q

SpywareDr
August 24th, 2005, 09:45 AM
Here's a quick rundown:g 0b2aRun the program at "0b2a" (g=go)e ds:0610
04Enter "04" into the "ds" register at memory address "0610"e ds:0611
9cEnter "9c" into the "ds" register at memory address "0611"e ds:0612
63Enter "63" into the "ds" register at memory address "0612"pProceedf ds:05c5 05ff 20Fill the "ds" register, from "05c5" through "05ff" with "20"'se ds:0613
0dEnter "0d" into the "ds" register at memory address "0613"e ds:0614
0aEnter "0a" into the "ds" register at memory address "0610"g 030dRun the program at "030d"tTrace. (When used without parameters, t begins tracing at the address specified by the program's CS:IP registers).g 0054Run the program at "0054"rf
nz"nz" clears flag "Zero" in "f"g 019dRun the program at "019d"rf
zr"zr" sets flag "Zero" in "f"g 01cdRun the program at "01cd"rf
zr"zr" sets flag "Zero" in "f"g 0225Run the program at "0225"rf
zr"zr" sets flag "Zero" in "f"gg=goqq=quit

--

And a few related links:

Debug
http://www.microsoft.com/technet/archive/msdos/comm2.mspx

Debug
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/debug.mspx

Debug subcommands
http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/debug_subcmds.mspx

DEBUG Tutorial
http://www.armory.com/~rstevew/Public/Tutor/Debug/debug-manual.html

RightPilot
August 24th, 2005, 10:13 AM
SpywareDR,

Thanks a million!

Qamar

SpywareDr
August 24th, 2005, 10:46 AM
You're welcome. :)