![]() |
China DOS Union-- Unite DOS · Advance DOS · Grow DOS --Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum |
| Guest | Log in | Register | Members | Search | China DOS Union |
|
中国DOS联盟论坛 The time now is 2026-08-12 09:52 |
47,811 topics / 349,897 posts / today 0 new / 48,256 members |
| DOS学习入门 & 精彩文章 (教学室) » Restore the master boot partition with DEBUG |
| Printable Version 1,715 / 2 |
| Floor1 playboy2925 | Posted 2003-02-26 00:00 |
| 银牌会员 Posts 393 Credits 1,275 | |
|
C:\DOS>DEBUG
-n mainboot.dat ;load the backed-up data file -l ;load -a100 1078:0100 mov ax,0301 ;03 = write, 01 = number of sectors 1078:0103 mov bx,0200 ;start writing from 0200 in memory 1078:0106 mov cx,0001 ;00 = track number, 01 = starting sector number 1078:0109 mov dx,0080 ;00 = head 0, 80 means hard disk 1078:010C int 13 ;BIOS disk interrupt 1078:010E int 20 ;end 1078:0110 ^C -g=100 ;execute from 0100 Program terminated normally -q ;quit DEBUG |
|
| Floor2 wolfwood | Posted 2003-02-26 00:00 |
| 初级用户 Posts 14 Credits 158 | |
|
Actually, just
a 100 mov ax,301 is enough, since you saved 300 bytes, right? Or simply after changing mov ax,301 save it as a .com and run it directly, wouldn't that be more convenient |
|
| Floor3 kcuf | Posted 2003-03-19 00:00 |
| 初级用户 Posts 1 Credits 101 | |
|
[ Contact the Union admin team -
中国DOS联盟 -
Standard version ] Sponsored by ifanr Inc | © 2001–2023 |