中国DOS联盟论坛

中国DOS联盟

-- 联合DOS 推动DOS 发展DOS --

联盟域名:www.cn-dos.net  论坛域名:www.cn-dos.net/forum
DOS,代表着自由开放与发展,我们努力起来,学习FreeDOS和Linux的自由开放与GNU精神,共同创造和发展美好的自由与GNU GPL世界吧!

游客:  注册 | 登录 | 命令行 | 会员 | 搜索 | 上传 | 帮助 »
中国DOS联盟论坛 » DOS学习入门 & 精彩文章 (教学室) » [求助]这是在讲引导区里头的东西吗?
作者:
标题: [求助]这是在讲引导区里头的东西吗? 上一主题 | 下一主题
allul*
高级用户




积分 612
发帖 167
注册 2003-12-1
状态 离线
『楼 主』:  [求助]这是在讲引导区里头的东西吗?

我不是很明白这是干什么的。

DOS: 360K 2DD 磁盘引导区

-l100 0 0 1
-d100
112B:0100 EB 3C 90 4D 53 44 4F 53-35 2E 30 00 02 02 01 00 .|.........E.
112B:0160 0F 8B 0E 18 7C 88 4D F9-89 47 02 C7 07 3E 7C FB ....|.M..G...>|.
112B:0170 CD 13 72 79 33 C0 39 06-13 7C 74 08 8B 0E 13 7C ..ry3.9..|t....|
112B:0180 89 0E 20 7C A0 10 7C F7-26 16 7C 03 06 1C 7C 13 .. |..|.&.|...|.
112B:0190 16 1E 7C 03 06 0E 7C 83-D2 00 A3 50 7C 89 16 52 ..|...|....P|..R
112B:01A0 7C A3 49 7C 89 16 4B 7C-B8 20 00 F7 26 11 7C 8B |.I|..K|. ..&.|.
112B:01B0 1E 0B 7C 03 C3 48 F7 F3-01 06 49 7C 83 16 4B 7C ..|..H....I|..K|
112B:01C0 00 BB 00 05 8B 16 52 7C-A1 50 7C E8 92 00 72 1D ......R|.P|...r.
112B:01D0 B0 01 E8 AC 00 72 16 8B-FB B9 0B 00 BE E6 7D F3 .....r........}.
112B:01E0 A6 75 0A 8D 7F 20 B9 0B-00 F3 A6 74 18 BE 9E 7D .u... .....t...}
112B:01F0 E8 5F 00 33 C0 CD 16 5E-1F 8F 04 8F 44 02 CD 19 ._.3...^....D...
112B:0200 58 58 58 EB E8 8B 47 1A-48 48 8A 1E 0D 7C 32 FF XXX...G.HH...|2.
112B:0210 F7 E3 03 06 49 7C 13 16-4B 7C BB 00 07 B9 03 00 ....I|..K|......
112B:0220 50 52 51 E8 3A 00 72 D8-B0 01 E8 54 00 59 5A 58 PRQ.:.r....T.YZX
112B:0230 72 BB 05 01 00 83 D2 00-03 1E 0B 7C E2 E2 8A 2E r..........|....
112B:0240 15 7C 8A 16 24 7C 8B 1E-49 7C A1 4B 7C EA 00 00 .|..$|..I|.K|...
112B:0250 70 00 AC 0A C0 74 29 B4-0E BB 07 00 CD 10 EB F2 p....t).........
112B:0260 3B 16 18 7C 73 19 F7 36-18 7C FE C2 88 16 4F 7C ;..|s..6.|....O|
112B:0270 33 D2 F7 36 1A 7C 88 16-25 7C A3 4D 7C F8 C3 F9 3..6.|..%|.M|...
112B:0280 C3 B4 02 8B 16 4D 7C B1-06 D2 E6 0A 36 4F 7C 8B .....M|.....6O|.
112B:0290 CA 86 E9 8A 16 24 7C 8A-36 25 7C CD 13 C3 0D 0A .....$|.6%|.....
112B:02A0 4E 6F 6E 2D 53 79 73 74-65 6D 20 64 69 73 6B 20 Non-System disk
112B:02B0 6F 72 20 64 69 73 6B 20-65 72 72 6F 72 0D 0A 52 or disk error..R
112B:02C0 65 70 6C 61 63 65 20 61-6E 64 20 70 72 65 73 73 eplace and press
112B:02D0 20 61 6E 79 20 6B 65 79-20 77 68 65 6E 20 72 65 any key when re
112B:02E0 61 64 79 0D 0A 00 49 4F-20 20 20 20 20 20 53 59 ady...IO SY
112B:02F0 53 4D 53 44 4F 53 20 20-20 53 59 53 00 00 55 AA SMSDOS SYS..U.

112B:0100 EB3C JMP 013E
112B:0102 90 NOP
112B:0103 4D DEC BP
112B:0104 53 PUSH BX
112B:0105 44 INC SP
112B:0106 4F DEC DI
112B:0107 53 PUSH BX
112B:0108 352E30 XOR AX,302E
112B:010B 0002 ADD [BP+SI],AL
112B:010D 0201 ADD AL,[BX+DI]
112B:010F 0002 ADD [BP+SI],AL
112B:0111 7000 JO 0113
112B:0113 A005F9 MOV AL,[F905]
112B:0116 0300 ADD AX,[BX+SI]
112B:0118 0900 OR [BX+SI],AX
112B:011A 0200 ADD AL,[BX+SI]
112B:011C 0000 ADD [BX+SI],AL
112B:011E 0000 ADD [BX+SI],AL
112B:0120 0000 ADD [BX+SI],AL
112B:0122 0000 ADD [BX+SI],AL
112B:0124 0000 ADD [BX+SI],AL
112B:0126 294E13 SUB [BP+13],CX
112B:0129 F0 LOCK
112B:012A 144C ADC AL,4C
112B:012C 41 INC CX
112B:012D 4E DEC SI
112B:012E 5F POP DI
112B:012F 44 INC SP
112B:0130 52 PUSH DX
112B:0131 56 PUSH SI
112B:0132 5F POP DI
112B:0133 353436 XOR AX,3634
112B:0136 46 INC SI
112B:0137 41 INC CX
112B:0138 54 PUSH SP
112B:0139 3132 XOR [BP+SI],SI
112B:013B 2020 AND [BX+SI],AH
112B:013D 20FA AND DL,BH
112B:013F 33C0 XOR AX,AX
112B:0141 8ED0 MOV SS,AX
112B:0143 BC007C MOV SP,7C00
112B:0146 16 PUSH SS
112B:0147 07 POP ES
112B:0148 BB7800 MOV BX,0078
112B:014B 36 SS:
112B:014C C537 LDS SI,[BX]
112B:014E 1E PUSH DS
112B:014F 56 PUSH SI
112B:0150 16 PUSH SS
112B:0151 53 PUSH BX
112B:0152 BF3E7C MOV DI,7C3E
112B:0155 B90B00 MOV CX,000B
112B:0158 FC CLD
112B:0159 F3 REPZ
112B:015A A4 MOVSB
112B:015B 06 PUSH ES
112B:015C 1F POP DS
112B:015D C645FE0F MOV BYTE PTR [DI-02],0F
112B:0161 8B0E187C MOV CX,[7C18]
112B:0165 884DF9 MOV [DI-07],CL
112B:0168 894702 MOV [BX+02],AX
112B:016B C7073E7C MOV WORD PTR [BX],7C3E
112B:016F FB STI
112B:0170 CD13 INT 13
112B:0172 7279 JB 01ED
112B:0174 33C0 XOR AX,AX
112B:0176 3906137C CMP [7C13],AX
112B:017A 7408 JZ 0184
112B:017C 8B0E137C MOV CX,[7C13]
112B:0180 890E207C MOV [7C20],CX
112B:0184 A0107C MOV AL,[7C10]
112B:0187 F726167C MUL WORD PTR [7C16]
112B:018B 03061C7C ADD AX,[7C1C]
112B:018F 13161E7C ADC DX,[7C1E]
112B:0193 03060E7C ADD AX,[7C0E]
112B:0197 83D200 ADC DX,+00
112B:019A A3507C MOV [7C50],AX
112B:019D 8916527C MOV [7C52],DX
112B:01A1 A3497C MOV [7C49],AX
112B:01A4 89164B7C MOV [7C4B],DX
112B:01A8 B82000 MOV AX,0020
112B:01AB F726117C MUL WORD PTR [7C11]
112B:01AF 8B1E0B7C MOV BX,[7C0B]
112B:01B3 03C3 ADD AX,BX
112B:01B5 48 DEC AX
112B:01B6 F7F3 DIV BX
112B:01B8 0106497C ADD [7C49],AX
112B:01BC 83164B7C00 ADC WORD PTR [7C4B],+00
112B:01C1 BB0005 MOV BX,0500
112B:01C4 8B16527C MOV DX,[7C52]
112B:01C8 A1507C MOV AX,[7C50]
112B:01CB E89200 CALL 0260
112B:01CE 721D JB 01ED
112B:01D0 B001 MOV AL,01
112B:01D2 E8AC00 CALL 0281
112B:01D5 7216 JB 01ED
112B:01D7 8BFB MOV DI,BX
112B:01D9 B90B00 MOV CX,000B
112B:01DC BEE67D MOV SI,7DE6
112B:01DF F3 REPZ
112B:01E0 A6 CMPSB
112B:01E1 750A JNZ 01ED
112B:01E3 8D7F20 LEA DI,[BX+20]
112B:01E6 B90B00 MOV CX,000B
112B:01E9 F3 REPZ
112B:01EA A6 CMPSB
112B:01EB 7418 JZ 0205
112B:01ED BE9E7D MOV SI,7D9E
112B:01F0 E85F00 CALL 0252
112B:01F3 33C0 XOR AX,AX
112B:01F5 CD16 INT 16
112B:01F7 5E POP SI
112B:01F8 1F POP DS
112B:01F9 8F04 POP [SI]
112B:01FB 8F4402 POP [SI+02]
112B:01FE CD19 INT 19
112B:0200 58 POP AX
112B:0201 58 POP AX
112B:0202 58 POP AX
112B:0203 EBE8 JMP 01ED
112B:0205 8B471A MOV AX,[BX+1A]
112B:0208 48 DEC AX
112B:0209 48 DEC AX
112B:020A 8A1E0D7C MOV BL,[7C0D]
112B:020E 32FF XOR BH,BH
112B:0210 F7E3 MUL BX
112B:0212 0306497C ADD AX,[7C49]
112B:0216 13164B7C ADC DX,[7C4B]
112B:021A BB0007 MOV BX,0700
112B:021D B90300 MOV CX,0003
112B:0220 50 PUSH AX
112B:0221 52 PUSH DX
112B:0222 51 PUSH CX
112B:0223 E83A00 CALL 0260
112B:0226 72D8 JB 0200
112B:0228 B001 MOV AL,01
112B:022A E85400 CALL 0281
112B:022D 59 POP CX
112B:022E 5A POP DX
112B:022F 58 POP AX
112B:0230 72BB JB 01ED
112B:0232 050100 ADD AX,0001
112B:0235 83D200 ADC DX,+00
112B:0238 031E0B7C ADD BX,[7C0B]
112B:023C E2E2 LOOP 0220
112B:023E 8A2E157C MOV CH,[7C15]
112B:0242 8A16247C MOV DL,[7C24]
112B:0246 8B1E497C MOV BX,[7C49]
112B:024A A14B7C MOV AX,[7C4B]
112B:024D EA00007000 JMP 0070:0000
112B:0252 AC LODSB
112B:0253 0AC0 OR AL,AL
112B:0255 7429 JZ 0280
112B:0257 B40E MOV AH,0E
112B:0259 BB0700 MOV BX,0007
112B:025C CD10 INT 10
112B:025E EBF2 JMP 0252
112B:0260 3B16187C CMP DX,[7C18]
112B:0264 7319 JNB 027F
112B:0266 F736187C DIV WORD PTR [7C18]
112B:026A FEC2 INC DL
112B:026C 88164F7C MOV [7C4F],DL
112B:0270 33D2 XOR DX,DX
112B:0272 F7361A7C DIV WORD PTR [7C1A]
112B:0276 8816257C MOV [7C25],DL
112B:027A A34D7C MOV [7C4D],AX
112B:027D F8 CLC
112B:027E C3 RET
112B:027F F9 STC
112B:0280 C3 RET
112B:0281 B402 MOV AH,02
112B:0283 8B164D7C MOV DX,[7C4D]
112B:0287 B106 MOV CL,06
112B:0289 D2E6 SHL DH,CL
112B:028B 0A364F7C OR DH,[7C4F]
112B:028F 8BCA MOV CX,DX
112B:0291 86E9 XCHG CH,CL
112B:0293 8A16247C MOV DL,[7C24]
112B:0297 8A36257C MOV DH,[7C25]
112B:029B CD13 INT 13
112B:029D C3 RET
112B:029E 0D0A4E OR AX,4E0A
112B:02A1 6F DB 6F
112B:02A2 6E DB 6E
112B:02A3 2D5379 SUB AX,7953
112B:02A6 7374 JNB 031C
112B:02A8 65 DB 65
112B:02A9 6D DB 6D
112B:02AA 206469 AND [SI+69],AH
112B:02AD 736B JNB 031A
112B:02AF 206F72 AND [BX+72],CH
112B:02B2 206469 AND [SI+69],AH
112B:02B5 736B JNB 0322
112B:02B7 206572 AND [DI+72],AH
112B:02BA 726F JB 032B
112B:02BC 720D JB 02CB
112B:02BE 0A5265 OR DL,[BP+SI+65]
112B:02C1 706C JO 032F
112B:02C3 61 DB 61
112B:02C4 63 DB 63
112B:02C5 65 DB 65
112B:02C6 20616E AND [BX+DI+6E],AH
112B:02C9 64 DB 64
112B:02CA 207072 AND [BX+SI+72],DH
112B:02CD 65 DB 65
112B:02CE 7373 JNB 0343
112B:02D0 20616E AND [BX+DI+6E],AH
112B:02D3 7920 JNS 02F5
112B:02D5 6B DB 6B
112B:02D6 65 DB 65
112B:02D7 7920 JNS 02F9
112B:02D9 7768 JA 0343
112B:02DB 65 DB 65
112B:02DC 6E DB 6E
112B:02DD 207265 AND [BP+SI+65],DH
112B:02E0 61 DB 61
112B:02E1 64 DB 64
112B:02E2 790D JNS 02F1
112B:02E4 0A00 OR AL,[BX+SI]
112B:02E6 49 DEC CX
112B:02E7 4F DEC DI
112B:02E8 2020 AND [BX+SI],AH
112B:02EA 2020 AND [BX+SI],AH
112B:02EC 2020 AND [BX+SI],AH
112B:02EE 53 PUSH BX
112B:02EF 59 POP CX
112B:02F0 53 PUSH BX
112B:02F1 4D DEC BP
112B:02F2 53 PUSH BX
112B:02F3 44 INC SP
112B:02F4 4F DEC DI
112B:02F5 53 PUSH BX
112B:02F6 2020 AND [BX+SI],AH
112B:02F8 205359 AND [BP+DI+59],DL
112B:02FB 53 PUSH BX
112B:02FC 0000 ADD [BX+SI],AL
112B:02FE 55 PUSH BP
112B:02FF AA STOSB



别问我是谁.
2004-1-19 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
gotomsdos
铂金会员

C++启程者


积分 5154
发帖 1827
注册 2003-7-18
状态 离线
『第 2 楼』:  

前面是DOS引导扇区。后面是主引导代码(用汇编语言写的)。



2004-1-19 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复
allul*
高级用户




积分 612
发帖 167
注册 2003-12-1
状态 离线
『第 3 楼』:  

谢谢。
是不是说,我们的机器里头就靠这些东西在引导启动呢?



别问我是谁.
2004-1-20 00:00
查看资料  发送邮件  发短消息 网志   编辑帖子  回复  引用回复

请注意:您目前尚未注册或登录,请您注册登录以使用论坛的各项功能,例如发表和回复帖子等。


可打印版本 | 推荐给朋友 | 订阅主题 | 收藏主题



论坛跳转: