Welcome, Guest

Go Back   TechieHQ - Computer Help Forum · » Software & Internet · HTML & Coding
Reload this Page assembly question.

assembly question.

HTML & Coding HTML, XHTML, CSS, XML and other coding issues you may code into.

Reply
 
Thread Tools Display Modes
  #1  
Old Jul 25th, 07, 8:02 PM
nameless's Avatar
nameless
Regular @ THQ
Posts: 180
Status: Offline
 
From: usa
Joined: Dec 2004
Rep: nameless will become a geek soon enough
assembly question.

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.
Reply With Quote
Advertisement
  #2  
Old Jul 28th, 07, 9:23 AM
nameless's Avatar
nameless
Regular @ THQ
Posts: 180
Status: Offline
 
From: usa
Joined: Dec 2004
Rep: nameless will become a geek soon enough
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.
Reply With Quote
  #3  
Old Jul 31st, 07, 5:49 PM
Fenis-Wolf's Avatar
Fenis-Wolf
Addicted to THQ
Posts: 2,974
Status: Offline
shield_mod.giftechie.gif
 
From: Ann Arbor, Mi
Joined: Apr 2003
Rep: Fenis-Wolf has much to be proud of his / her geeknessFenis-Wolf has much to be proud of his / her geeknessFenis-Wolf has much to be proud of his / her geeknessFenis-Wolf has much to be proud of his / her geeknessFenis-Wolf has much to be proud of his / her geeknessFenis-Wolf has much to be proud of his / her geeknessFenis-Wolf has much to be proud of his / her geeknessFenis-Wolf has much to be proud of his / her geeknessFenis-Wolf has much to be proud of his / her geekness
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.



Reply With Quote
Reply

Tags
assembly, question


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 1:03 AM.