assembly question.

Discussion in 'Web Design & Coding' started by nameless, Jul 25, 2007.

  1. nameless

    nameless VIP Member

    Joined:
    Dec 27, 2004
    Messages:
    183
    Likes Received:
    2
    Location:
    usa
    I Came across this script a few years ago when I had a problem with a hdd formatting. Its using the dos debug command. It worked that time and a few times with viruses. Now I'm being told it does'nt work. Even though I dont know how to explain it I know it works. Can anybody explain to me whats going on. Here is the script.

    -F 200 L1000 0 (ENTER)
    -A CS:100 (ENTER)
    xxxx:0100 MOV AX,301 (ENTER)
    xxxx:0103 MOV BX,200 (ENTER)
    xxxx:0106 MOV CX,1 (ENTER)
    xxxx:0109 MOV DX,80 (ENTER) <-- "80" for hd 0, "81" for hd 1 >
    xxxx:010C INT 13 (ENTER)
    xxxx:010E INT 20 (ENTER)
    xxxx:0110 (ENTER) <---BLANK LINE - IMPORTANT! >
    -G (ENTER)
    Program terminated normally
    -(CTRL)-(ALT)-(DEL)

    Of course this is ran after booting to a dos or startup disc. I know it deletes all partions causer after I run it when I go to format it says there is no partions. Any help is appreciated.
     
    nameless, Jul 25, 2007
    #1
    1. Advertisements

  2. nameless

    nameless VIP Member

    Joined:
    Dec 27, 2004
    Messages:
    183
    Likes Received:
    2
    Location:
    usa
    I believe I got it broke down:

    -f 200 L1000 0-calling for 512 mb of 0's to be written at off set 200

    -a cs 100- start assembly

    mov ax,301- Is calling on bio to write sector and calling for 1 sector to be written.

    mov bx,200- points to where to be written

    mov cx, 1-tells which cly and sector

    mov dx,80-which drive

    int 13- calls bios disc fuctions read/write

    int 20- I'm not real sure right here I believe int 13 is getting turned back over to debug

    this blank line ends the code

    go,run, commands to do it.
     
    nameless, Jul 28, 2007
    #2
    1. Advertisements

  3. nameless

    Fenis-Wolf VIP Member

    Joined:
    Apr 30, 2003
    Messages:
    2,951
    Likes Received:
    35
    Location:
    Ann Arbor, Mi
    I wouldn't mess with that-use DBAN instead. That will well and truly remove any and all partitions on a disk in a secure fashion.
     
    Fenis-Wolf, Jul 31, 2007
    #3
    1. Advertisements

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.
Similar Threads
  1. Peter

    Raid assembly

    Peter, Sep 21, 2005, in forum: DIY Computers
    Replies:
    10
    Views:
    648
    Peter Barns
    Sep 26, 2005
  2. Peter Boulton
    Replies:
    2
    Views:
    503
    Johnny B Good
    Oct 27, 2007
  3. GB

    replacement pushpin assembly

    GB, Nov 20, 2007, in forum: DIY Computers
    Replies:
    2
    Views:
    765
    Jaimie Vandenbergh
    Nov 23, 2007
  4. GB

    PC Assembly worker desired

    GB, Dec 19, 2003, in forum: Computing
    Replies:
    31
    Views:
    935
    Byron John Forbes
    Dec 23, 2003
  5. ToolPackinMama

    Re: PC Assembly

    ToolPackinMama, Aug 20, 2003, in forum: PC Hardware
    Replies:
    1
    Views:
    272
    Lenny
    Aug 21, 2003
  6. Harry Palms

    Thing that heatsink assembly clips to

    Harry Palms, Oct 18, 2004, in forum: PC Hardware
    Replies:
    3
    Views:
    260
    Harry Palms
    Oct 20, 2004
  7. Richard R. Graham

    Computer Assembly Problem

    Richard R. Graham, Sep 2, 2005, in forum: PC Hardware
    Replies:
    5
    Views:
    243
    Mike Hollywood
    Sep 3, 2005
  8. Squigmont

    Re: Least assembly to see fans work?

    Squigmont, Mar 4, 2006, in forum: PC Hardware
    Replies:
    1
    Views:
    224
    Squigmont
    Mar 9, 2006
Loading...