:back to tech:

 

 

     here are some really handy debug scripts, they've all been tested and work great. if you're not familiar with the debug command, you don't know what you're missing. also, if you're not familiar with the debug command, i'd like to warn you that the majority of the scripts on this page will cause data loss when they are run so exercise extreme caution. eventually if/when i get around to it i plan on including some debug tutorials for those who are interested.

 

     in the scripts below, the red type indicates what you will type, the white is what the system will respond with, and of course <enter> means 'hit enter'. got it? also for those who will be doing this on systems with multiple hard drives, keep in mind that in the lines containing the DX register (MOV DX, 80), the 80 indicates HD0 which is what you'll use if you're doing this on the primary master drive.

 

:: for reference: 80=HD0, 81=HD1, 82=HD2, 83=HD3 ::

 

     another note: when you use the port identification script, the output will be flip-flopped. for instance, and output of F8 03 would indicate that com1 is responding whereas normally you'd recognize com1 as 03F8. the same applies for com2, com3, and com4 ... F8 02, E8 03, and E8 02 respectively.

 

one final note: the majority of these scripts will not take effect until you restart the system.

 

 

clear sectors 0-10, MBR, partition table, and FAT
delete partitions on ide hard drive
- A <enter>
-xxxx:0100 MOV AX, 30A <enter>
-xxxx:0103 MOV CX, 1 <enter>
-xxxx:0106 MOV DX, 80 <enter>
-xxxx:0109 MOV BX, 3800 <enter>
-xxxx:010C INT 13 <enter>
-xxxx:010E INT 3 <enter>
-xxxx:010F   <enter>
- G=100 <enter>
- Q <enter>
- 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>
-xxxx:010C INT 13 <enter>
-xxxx:010E INT 20 <enter>
-xxxx:0110   <enter>
- G <enter>
- Q <enter>
delete first ten tracks of hard drive
low level format
- F 200 L1000 0 <enter>
- A CS:100 <enter>
-xxxx:0100 MOV AX, 30A <enter>
-xxxx:0103 MOV BX, 200 <enter>
-xxxx:0106 MOV CX, 1 <enter>
-xxxx:0109 MOV DX, 80 <enter>
-xxxx:010C INT 13 <enter>
-xxxx:010E INT 20 <enter>
-xxxx:0110   <enter>
- G <enter>
- Q <enter>
- F 200 L1000 0 <enter>
- A CS:100 <enter>
-xxxx:0100 MOV AX, 30F <enter>
-xxxx:0103 MOV BX, 200 <enter>
-xxxx:0106 MOV CX, 1 <enter>
-xxxx:0109 MOV DX, 80 <enter>
-xxxx:010C INT 13 <enter>
-xxxx:010E INT 20 <enter>
-xxxx:0110   <enter>
- G <enter>
- Q <enter>
clear hd format number (packard bell)
clear cmos
- F 200 400 0 <enter>
- A <enter>
-xxxx:0100 MOV AX, 30A <enter>
-xxxx:0103 MOV BX, 200 <enter>
-xxxx:0106 MOV CX, 2 <enter>
-xxxx:0109 MOV DX, 80 <enter>
-xxxx:010C INT 13 <enter>
-xxxx:010E INT 20 <enter>
-xxxx:0110   <enter>
- G <enter>
- Q <enter>
- A <enter>
-xxxx:0100 MOV AX, 0 <enter>
-xxxx:0103 MOV AX, CX <enter>
-xxxx:0105 OUT 70, AL <enter>
-xxxx:0107 MOV AX, 0 <enter>
-xxxx:010A OUT 71, AL <enter>
-xxxx:010C INC CX <enter>
-xxxx:010D CMP CX, 100 <enter>
-xxxx:0111 JB 103 <enter>
-xxxx:0113 INT 20 <enter>
-xxxx:0115   <enter>
- G=100 <enter>
- Q <enter>
cmos password disable
obtain bios creation date
- O 70 21 <enter>
- O 71 21 <enter>
- Q <enter>
- D F000:FFF0 <enter>
- Q <enter>
     
quick cmos reset
port identification
- O 70 18 <enter>
- O 71 FF <enter>
- Q <enter>
- D40:0,7 <enter>
- Q <enter>
     

 

 

:back to tech: