Debug Script
Want to format your hardrive with debugging, but dont know the codes, here's the code for debugging the hard disk drives.
debug <enter> - starts the debug script
-A 100 <enter> - starting the programme at offset 100h
xxxx:0100 MOV AX,201 <enter> - INT 13 reads one sector
xxxx:01.3 MOV BX,300 <enter> - data buffer that will hold sector read
xxxx:0106 MOV CX,1 <enter> - read cylinder 0, sector 1
xxxx:010C INT 13 <enter> - read head 0, drive 0 -"80" for hd0, "81" for hd1
xxxx:010F INT 3 <enter> - calls the BIOS disk 10 interrupt
- G=100 <enter> - returns
^ top