'Debug' usage in disk editting
Results 1 to 4 of 4

Thread: 'Debug' usage in disk editting

  1. #1
    Join Date
    Aug 2005
    Posts
    2

    'Debug' usage in disk editting

    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

  2. #2
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806
    Here's a quick rundown:
    g 0b2a
    Run the program at "0b2a" (g=go)
    e ds:0610
    04
    Enter "04" into the "ds" register at memory address "0610"
    e ds:0611
    9c
    Enter "9c" into the "ds" register at memory address "0611"
    e ds:0612
    63
    Enter "63" into the "ds" register at memory address "0612"
    p
    Proceed
    f ds:05c5 05ff 20
    Fill the "ds" register, from "05c5" through "05ff" with "20"'s
    e ds:0613
    0d
    Enter "0d" into the "ds" register at memory address "0613"
    e ds:0614
    0a
    Enter "0a" into the "ds" register at memory address "0610"
    g 030d
    Run the program at "030d"
    t
    Trace. (When used without parameters, t begins tracing at the address specified by the program's CS:IP registers).
    g 0054
    Run the program at "0054"
    rf
    nz
    "nz" clears flag "Zero" in "f"
    g 019d
    Run the program at "019d"
    rf
    zr
    "zr" sets flag "Zero" in "f"
    g 01cd
    Run the program at "01cd"
    rf
    zr
    "zr" sets flag "Zero" in "f"
    g 0225
    Run the program at "0225"
    rf
    zr
    "zr" sets flag "Zero" in "f"
    g
    g=go
    q
    q=quit

    --

    And a few related links:

    Debug
    http://www.microsoft.com/technet/arc...dos/comm2.mspx

    Debug
    http://www.microsoft.com/resources/d...-us/debug.mspx

    Debug subcommands
    http://www.microsoft.com/resources/d...g_subcmds.mspx

    DEBUG Tutorial
    http://www.armory.com/~rstevew/Publi...ug-manual.html

  3. #3
    Join Date
    Aug 2005
    Posts
    2
    SpywareDR,

    Thanks a million!

    Qamar

  4. #4
    Join Date
    Apr 2005
    Location
    Maryland, USA
    Posts
    17,806

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •