China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-08-12 08:55
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » Restore the master boot partition with DEBUG View 1,713 Replies 2
Original Poster Posted 2003-02-26 00:00 ·  中国 广东 广州 电信
银牌会员
★★★
想當一人之下萬人之上
Credits 1,275
Posts 393
Joined 2003-01-10 00:00
23-year member
UID 717
Gender Male
Status Offline
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
<- 刷新一下换个MM
叫我Jorkin或小p就行,别再叫playboy2925了,跟提犯人似的。
如果认为小弟发的logo不错的话,给朵鲜花我就知道了。:)
Floor 2 Posted 2003-02-26 00:00 ·  中国 北京 海淀区 教育网
初级用户
wolfwood
Credits 158
Posts 14
Joined 2003-02-14 00:00
23-year member
UID 919
Gender Male
Status Offline
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
我不能偷也不能搶
Floor 3 Posted 2003-03-19 00:00 ·  中国 上海 东方有线
初级用户
Credits 101
Posts 1
Joined 2003-03-19 00:00
23-year member
UID 1190
Gender Male
Status Offline
Forum Jump: