ºìÁªLinuxÃÅ»§
Linux°ïÖú

Linux ±à³ÌʵÏÖ¶àÒýµ¼

·¢²¼Ê±¼ä:2006-03-23 00:17:07À´Ô´:ºìÁª×÷Õß:»ð
Èç¹ûÄãÊÇÒ»¸ö¼ÆËã»úÓû§ÏàÐÅÄãÒ»¶¨°²×°¹ý²Ù×÷ϵͳ£¬µ±ÄãÓþÃÁËÒ»¸ö²Ù×÷ϵͳ£¬Äã¿ÉÄܻᰲװһ¸öеIJÙ×÷ϵͳ£¬µ«ÄãÍùÍùÏ£Íû±£ÁôÏÖÔڵIJÙ×÷ϵͳ¡£±ÈÈçµ±ÄãÓÐÁËÒ»¸öwindows98£¬Äã¿ÉÒÔÔÚÉÏÃæÔÙ°²×°windows2K»òÊÇwindowsXP£¬ÕâÊÇÒòΪWindowsµÄNTloader¿ÉÒÔÈÏʶ±È×Ô¼º¸üÔçµÄ²Ù×÷ϵͳ£¬ËùÒÔÄܹ»¸øÄã±£ÁôÏÈÇ°µÄ²Ù×÷ϵͳ¡£µ«ÊÇÈç¹ûÄãÏÖÔÚÒѾ­ÓµÓÐÁËÒ»¸öwindows2K»òÊÇwindowsXPÄãÒªÔÚÓ²ÅÌÉÏÔÙ×°¸öWINDOWS98ÉõÖÁһЩ»³¾ÉÅÉÈËÊ¿ÏëÔÚÉÏÃæ°²×°Ò»¸öDOS6.22£¬´ËʱÓÖ¸ÃÔõô°ìÄØ£¿ÄãÍùÍù»áÓõ½µÚÈý·½Èí¼þ£¬±ÈÈçV communications£¬.incµÄSystem CommanderϵÁУ¬PowerQuest CorporrationµÄBootMagicµÈµÈ¶¼ÊǺܺõÄÑ¡Ôñ¡£ÕâЩÈí¼þµÄ½«Ó²ÅÌ·ÖÇøÉèÖÃΪÁ½¸ö»òÊÇÁ½¸öÒÔÉϵÄÖ÷·ÖÇø£¬£¨Ò²¾ÍÊÇÎÒÃÇËù˵µÄË«¡°C¡±ÅÌ£¬»òÊǶࡰC¡±ÅÌ£©£¬°Ñ²»Í¬µÄ²Ù×÷ϵͳ°²×°µ½²»Í¬µÄÖ÷·ÖÇø£¬Í¨¹ý¼¤»î²»Í¬µÄ·ÖÇøÀ´ÊµÏÖ¶àÖØÒýµ¼£¬ÆäÓŵãÊÇ°²È«Îȶ¨£¬Ò»µ©Ò»¸ö²Ù×÷ϵͳ̱»¾£¬Ò»µã²»Ó°ÏìÆäËû²Ù×÷ϵͳ£¬¸öÈËÈÏΪֵµÃÍƼö¡£
±¾ÎIJ»ÊÇһƪ¶à²Ù×÷ϵͳʵÏֵľ­Ñé½éÉÜ£¬Òò´ËÓйØBootMagicµÈµÚÈý·½Èí¼þµÄʹÓÃÎҾͲ»ÔÙÀË·Ñƪ·ùÀ´½éÉÜ£¬ÎÒÒª¸ø´ó¼Ò·ÖÎöµÄÊÇ´ËÀàÈí¼þµÄʵÏÖÔ­Àí¡£
ÒªÁ˽âÆäʵÏÖÔ­Àí£¬Ê×ÏÈÄã±ØÐë¶ÔÓ²Å̵Ä×ÜÌå½á¹¹ÓÐÒ»¶¨µÄÁ˽⣬Èç¹ûÄã¶ÔÆä½á¹¹²»Á˽â¿É²ÎÕÕ±í1¡£
±í1£º
Ãû³Æ±¸×¢
1Ö÷Òýµ¼ÉÈÇø£¨Master boot sector£©Õ¼ÓÃÒ»¸öÉÈÇø
2µÚÒ»¸öÖ÷·ÖÇøµÄÒýµ¼ÉÈÇø£¨Boot sector£©Õ¼ÓÃÒ»¸öÉÈÇø
3µÚÒ»¸öÖ÷·ÖÇøµÄFATÇøÕ¼ÓÿռäÓÉ´ÅÅÌ´óСºÍFATÀàÐÍÀ´¶¨
4µÚÒ»¸ö·ÖÇøµÄ¸ùĿ¼Çø´æ·Å·ÖÇø¸ùĿ¼
5µÚÒ»¸ö·ÖÇøÊý¾ÝÇøÓÃÀ´´æ·Å¸÷ÖÖÊý¾Ý
6¡­
7À©Õ¹·ÖÇø±í Õ¼ÓÃÒ»¸öÉÈÇø
8µÚÒ»¸öÀ©Õ¹·ÖÇøµÄÒýµ¼ÉÈÇøÕ¼ÓÃÒ»¸öÉÈÇø
9µÚÒ»¸öÀ©Õ¹·ÖÇøµÄFATÇøÕ¼ÓÿռäÓÉ´ÅÅÌ´óСºÍFATÀàÐÍÀ´¶¨
10µÚÒ»¸öÀ©Õ¹·ÖÇøµÄ¸ùĿ¼Çø´æ·Å·ÖÇø¸ùĿ¼
11µÚÒ»¸öÀ©Õ¹·ÖÇøµÄÊý¾ÝÇøÓÃÀ´´æ·Å¸÷ÖÖÊý¾Ý
12¡­
×¢Ò⣺¸Ã±íÒÔ¿Õ¼ä˳Ðò½øÐÐÃèÊö,Ò»¸öÓ²ÅÌÔÊÐí×î¶àËĸöÖ÷·ÖÇøºÍ¶à¸öÀ©Õ¹·ÖÇø

ÎÒÃÇ»¹ÐèÒªÁ˽âÖ÷Òýµ¼ÉÈÇø£¨Master boot sector£©µÄ½á¹¹£¬ËüÊÇÓ²Å̵ĵÚÒ»¸öÉÈÇø, ÓÉÖ÷Òýµ¼³ÌÐò£¨MasterBoot Record¼ò³ÆMBR£©£¬Ó²ÅÌ·ÖÇø±í£¨Disk Partition Table¼ò³ÆDPT £©ºÍ½áÊø±êʶÈý²¿·Ö×é³É¡£Æä½á¹¹Èç±í2¡£



±í2£º
ÔÚÖ÷Òýµ¼ÉÈÇøÖеÄλÖÃÃû³Æ±¸×¢
1Æ«ÒÆ 00H~1BDHÖ÷Òýµ¼³ÌÐòÕ¼446¸ö×Ö½Ú£¬µ«Êµ¼Ê¿ÉÄܲ¢Î´ÓÃÂú
2Æ«ÒÆ1BEH~1FDHÓ²ÅÌÖ÷·ÖÇø±íÕ¼64¸ö×Ö½Ú£¬Ã¿¸ö·ÖÇøÏîÕ¼16¸ö×Ö½Ú,×î¶à¿ÉÓÐ4¸ö·ÖÇøÏî:1BEH~1CDH ·ÖÇøÏî11CEH~1DDH ·ÖÇøÏî21DBH~1EDH ·ÖÇøÏî31EFH~1FDH ·ÖÇøÏî4
3Æ«ÒÆ1FEH~1FFH½áÊø±êʶռ2¸ö×Ö½Ú£¬ÓÃÀ´ÅжϷÖÇø±íµÄÓÐЧÐÔ

Ö÷Òýµ¼³ÌÐòÎÒÔڴ˾Ͳ»·ÖÎöÁË£¬ÐèҪעÒâµÄÊÇÔÚÖ÷Òýµ¼³ÌÐòÖÐÓÐһЩ³ö´íÐÅÏ¢£¬Ò»Ð©Òýµ¼ÐͲ¡¶¾ÍùÍù»á¸²¸ÇÕâЩÐÅÏ¢À´½«×Ô¼ºÇ¶Èëµ½Ö÷Òýµ¼³ÌÐòÖÐÈ¥£¬²¢½«Ö÷Òýµ¼³ÌÐò¿ªÊ¼µÄ¼¸¸ö×Ö½Ú¸ÄΪһÌõÌøתָÁͨ¹ý¹Û²ìÖ÷Òýµ¼³ÌÐòµÄ±ä»¯£¬ÍùÍù¿ÉÒÔÈÃÎÒÃÇ¿´³ö×Ô¼ºµÄµçÄÔÊÇ·ñÓÐÒýµ¼ÐͲ¡¶¾£¬Ò»µ©·¢ÏÖÒì³££¬ÎÒÃÇ¿ÉÒÔÓÃFDISK/MBRÃüÁîÀ´¸²¸ÇÔ­ÓеÄMBR¡£½áÊø±êʶµÄÁ½¸ö×Ö½Ú×ÜÊÇ55H AAH£¬¸Ã±êʶֻÊÇÓÃÓÚÅжÏÕâ¸öÉÈÇøÊÇ·ñÊÇÓÐЧµÄÖ÷Òýµ¼ÉÈÇø£¬Èç¹ûÖ÷Òýµ¼³ÌÐò·¢ÏÖûÓÐÕâ¸ö½áÊø±êʶ£¬½«»áÈÏΪ²Ù×÷ϵͳ¶ªÊ§£¬²¢ÏÔʾ¡°Missing Operating System¡±¡£
ÎÒÃÇ×îºóÒªÁ˽âµÄÊÇÓ²ÅÌ·ÖÇø±í,¶àÖØÒýµ¼Èí¼þÒ»°ã¶¼ÊÇͨ¹ýÐ޸ķÖÇø±íÖеÄÌض¨×Ö½Ú´ïµ½¶àÖØÒýµ¼µÄÄ¿µÄµÄ,ÔÚÓ²Å̵ÄÖ÷Òýµ¼ÇøÖÐ,´ÓÆ«ÒÆ1BEH~1FDHµÄ64¸ö×Ö½Ú´æ·ÅµÄÊÇÓ²ÅÌ·ÖÇø±í£¬ÆäÖÐ×î¶à°üº¬4¸ö·ÖÇøÏÿ¸ö·ÖÇøÏîÓÉ16¸ö×Ö½Ú¹¹³É,ÎÒÃÇÀ´¿´¿´Ã¿¸ö·ÖÇøÏîµÄÏêϸº¬Ò壬¼ÙÉèÎÒÃǵÄÒ»¸ö·ÖÇøÕ¼ÓõÄ16¸ö×Ö½Ú±»±êΪ00H~0FH£¬Æä½á¹¹Èç±í3£º
±í3£º
Æ«Òƺ¬Òå
00HÒýµ¼±êʶ×Ö½Ú£¬ÆäÖµÖ»ÄÜΪ00H»ò80H£¬Îª00Hʱ±íʾ¸Ã·ÖÇø²»¿ÉÒýµ¼£¬Îª80Hʱ±íʾ¸Ã·ÖÇø¿ÉÓÃÓÚÒýµ¼ ¡£
01H·ÖÇøÆðʼ´ÅÍ·ºÅ
02HÆä¸ß2λΪ·ÖÇøÆðʼÖùÃæºÅµÄ¸ß룬µ×6λΪ·ÖÇøÆðʼÉÈÇøºÅ
03H·ÖÇøÆðʼÖùÃæºÅµÄµÍλ
04H·ÖÇøϵͳ±êÖ¾£¬µ±¸ÃֵΪ00Hʱ£¬±íʾ´Ë·ÖÇøΪ²»¿Éʶ±ðµÄϵͳ£»Îª04Hʱ¸Ã·ÖÇøΪFAT16·ÖÇø£»Îª05H»ò0FH¸Ã·ÖÇøΪ À©Õ¹·ÖÇø£»Îª0Bʱ¸Ã·ÖÇøΪFAT32·ÖÇø £»Îª83Hʱ±íʾ¸Ã·ÖÇøΪLinux·ÖÇø, Ϊ07ʱ¸Ã·ÖÇøΪNTFS·ÖÇø
05H·ÖÇø½áÊø´ÅÍ·ºÅ
06HÆä¸ß2λΪ·ÖÇø½áÊøÖùÃæºÅµÄ¸ß룬µ×6λΪ·ÖÇø½áÊøÉÈÇøºÅ
07H·ÖÇø½áÊøÖùÃæºÅµÄµÍλ
08H~0BHÔÚÏßÐÔÑ°Ö··½Ê½ÏµķÖÇøµÄÉÈÇøµØÖ·¡£
0CH~0FHÒÔÉÈÇøΪµ¥Î»µÄ¸Ã·ÖÇø´óС£¨×ÜÉÈÇøÊý£©
ÎÒÃÇÀ´¿´¿´BootMagicÖ®ÀàµÄÈí¼þÊÇÈçºÎʵÏÖ¶àϵͳÒýµ¼µÄÁË£¬ÔÚ±í3ÖÐÎÒÃÇ¿´µ½ÔÚÆ«ÒÆ00H´¦µÄÒ»¸ö×Ö½Úµ±ÆäֵΪ80Hʱ´ú±í¸Ã·ÖÇøÊÇÒ»¸öÒýµ¼Çø£¬µ±ÆäֵΪ00Hʱ´ú±í¸Ã·ÖÇø²»ÊÇÒýµ¼Çø£¬Æäʵ¶àÒýµ¼µÄʵÏÖÔ­Àí¾ÍÊÇͨ¹ý¸Ä±ä¸Ã´¦µÄÖµÀ´Ñ¡ÔñÓÃÀ´Òýµ¼µÄ·ÖÇø¡£
¼ÙÉèÄãÒѾ­Á˽âÁËÒÔÉÏÔ­Àí£¬ÎÒÃǾÍÍêÈ«¿ÉÒÔ×ö³ö×Ô¼ºµÄ¶àÖØÒýµ¼³ÌÐòÀ´ÁË£¬ÎÒÔÚ´Ëд³öÒ»¸öÍêÕûµÄʵÏÖ³ÌÐò£¬ÎÒ½«Îª´ó¼Ò·ÖÎöÕâ¸ö³ÌÐòÓ¦¸ÃÔõôÀ´Ð´¡£¼ÙÉèÄãÓÐÒ»¿éÓ²ÅÌ£¬ÄãÔÚÉÏÃæ°²×°ÁËÒ»¸öwindowsXP£¬¿ÉÄãÏÖÔÚÏë×°¸öwindows98£¬ÓÚÊÇÄãÓÃPartitionMagic½«ÄãµÄµÚÒ»¸öÀ©Õ¹·ÖÇøÒ²¾ÍÊÇÄãµÄDÇøÉèÖÃΪÖ÷·ÖÇø£¬È»ºó¼¤»î£¬ÖØÆô¶¯²¢ÓÃwindows98°²×°¹âÅÌÒýµ¼ÏµÍ³£¬²¢°²×°ºÃwindows98¡£¾Íµ½Õ⣬ÄãÏȲ»Òª¼±ÓÚ°²×°BootMagic£¬ÈÃÎÒÃÇÀ´ÊÔÊÔ¶¯ÊÖ×ö¸ö×Ô¼ºµÄBootMagicÔõôÑù¡£
ºÜÏÔÈ»£¬ÒªÊµÏִ˹¦ÄÜ£¬×îÉÙÐèÒªÁ½¸öÄ£¿é£¬Ä£¿éÒ»£º±»Ð´ÈëÖ÷Òýµ¼ÉÈÇøÖУ¬ÓÃÀ´È¡´úÔ­MBRÇø£¬Ëü±ØÐëÄܹ»ÔÚϵͳÒýµ¼Ç°»ñÈ¡Ö´ÐÐȨ£¬ÊµÏÖÖ÷·ÖÇøµÄÒýµ¼Ñ¡Ôñºó£¬½«Ö´ÐÐȨ½»¸ø±»Ñ¡ÔñµÄ²Ù×÷ϵͳ£¬´Ó¶øʵÏÖ¶àϵͳÒýµ¼£»Ä£¿é¶þ£ºÊµÏÖÈý¸ö¹¦ÄÜ£¬Ê×ÏȽ«Ô­Ö÷Òýµ¼ÉÈÇø±¸·ÝÒ»¸öµ½ÆäËûÉÈÇø£¨ÔÚÎÒµÄÀý×ÓÖаÑËü±¸·Ýµ½0Í·0µÀ 6ÉÈ£©£¬È»ºó½«Ä£¿éһдÈëÖ÷Òýµ¼ÉÈÇø¡£ÁíÍâÄ£¿é¶þ»¹ÊµÏÖ¶àÒýµ¼³ÌÐòµÄжÔØ
Ä£¿é¶þ¹¦ÄÜÏà¶Ô¼òµ¥£¬ÆäÔ´³ÌÐòÈçÏ£º
;Ó²Å̶àÒýµ¼°²×°³ÌÐò£¨SYSGUIDE.EXE£©Ä£¿é¶þ
DATA SEGMENT
D1 DB 'choose'
D2 DB 'Please choose the number (1)Install the SYSGUIDE',0dh,0ah,' DB ¡® (2) Delete the SYSGUIDE',0dh,'$'
D3 DB 'SYSGUIDE.DAT',00H
D4 DB 'Can not find file (SYSGUIDE.DAT)',0dh,0ah,'$'

D5 DB 0dh,0ah
DB 0dh,0ah
DB 0dh,0ah
DB ' ----------# MUCH SYSTEM GUIDE #------------',0dh,0ah
DB ' E-mail:tyhhyf@hotmail.com',0dh,0ah
DB ' OICQ:86633320',0dh,0ah,'$'
DATA ENDS


CODE SEGMENT
ASSUME CS:CODE,DSATA,ESATA
START:
MOV AX,DATA
MOV DS,AX
MOV ES,AX
MOV DX,OFFSET D5
MOV AH,09H
INT 21H
MOV AH,00H
INT 16H
MOV DX,OFFSET D2
MOV AH,09H
INT 21H
readkey:
MOV AH,00H
INT 16H
cmp al,'1'
je key1
cmp al,'2'
je key2
jmp readkey
key1:
MOV AX,0201H ;¶Á0 0 1ÉÈÇø
MOV CX,0001H
MOV DX,0080H
MOV BX,0F000H
INT 13H
MOVSI,offset D1
MOVDI,0F020H
MOVCX,0003H
REPZ CMPSW
JZEXIT ;×Ö·û´®ÏàͬÔòÌøת
mov ax,0301h ;½«Ô­MBSÇø±¸·ÝÒ»¸öµ½0 0 6 ÉÈ
mov cx,0006h
mov dx,0080h
int 13h
MOV AH,3DH
MOV DX,OFFSET D3
MOV AL,00H
INT 21H ;´ò¿ªÎļþSYSGUIDE.DAT
JB OPERERROR
PUSH AX
MOV AH,3FH
MOV DX,0F000H
MOV CX,018DH
POP BX
INT 21H
MOV AX,0301H ;½«SYSGUIDE.DATдµ½0 0 1ÉÈ,Ìæ´úÔ­À´µÄMBR
MOV CX,0001H
MOV DX,0080H
MOV BX,0F000H
INT 13H
JMP EXIT
key2:
MOV AX,0201H;¶Á0 0 1ÉÈÇø
MOV CX,0001H
MOV DX,0080H
MOV BX,0F000H
INT 13H
MOVSI,offset D1
MOVDI,0F020H
MOVCX,0003H
REPZ CMPSW
JNZEXIT ;×Ö·û´®ÏàͬÔòÌøת
MOV AX,0201H ;¶Á0 0 6ÉÈÇø
MOV CX,0006H
MOV DX,0080H
MOV BX,0F000H
INT 13H
MOV AX,0301H ;д0 0 1ÉÈÇø
MOV CX,0001H
MOV DX,0080H
MOV BX,0F000H
INT 13H
JMP EXIT
OPERERROR:
MOV AH,09H
MOV DX,OFFSET D4
INT 21H
EXIT:
MOV AH,4Ch
INT 21h
CODE ENDS
END START
Ä£¿éÒ»±»Ð´Èëµ½Ó²Å̵ĵÚÒ»¸öÉÈÇøÖУ¬ÔÚϵͳÒýµ¼Ö®Ç°»ñµÃÖ´ÐÐȨ£¬´Ó¶øʵÏÖ¶àÒýµ¼¡£ÒòΪÕâÊǸöÉÈÇø³ÌÐò£¬ÓбðÓÚÒ»°ãµÄ³ÌÐòÎļþ£¬Æä¸ñʽÀàËÆÓÚCOMÎļþ£¬ÔÚ´ËÎÒÊDzÉÓÃDEBUG³ÌÐò£¬´ÓEXEÎļþÖÐÌáÈ¡µÄ·½·¨À´ÊµÏֵģ¬Ô´³ÌÐòÈçÏ£º
;¶àÒýµ¼³ÌÐò£¨SYSGUIDE.DAT£©,ÐèÒª´ÓÒÔÏÂÔ´³ÌÐò£¨Ä£¿éÒ»£©²úÉúµÄ³ÌÐòÎļþÖÐÌáÈ¡
CODE SEGMENT
ASSUME CS:CODE,DS:CODE,ES:CODE

;ÕâÒ»¶ÎÊǽ«Õû¸öÓ²ÅÌËø´Ó0000:7c00ÒÆÖÁ0000:0600,ÒÔÃâ±»ºóÀ´¶ÁÈëµÄ´úÂ븲¸Ç
START:
db 256 dup (00h)
PUSHDS
PUSHES
MOVCX,0100h
MOVDI,0600h
MOVAX,0000h
MOVDS,AX
MOVES,AX
MOVSI,7C00h
REPNZ MOVSW
mov ax,0686h
JMPax ;³¤ÌøתÖÁÒƶ¯ºóµÄ´úÂ룬Ҳ¾ÍÊÇ´Óscreen´¦¿ªÊ¼Ö´ÐÐ
words db 'Please choose the partition for guide.'
db 10 dup (20h)
db '(1)partition 1;(2)partition 2;(3)partition 3;(4)partition 4;',00h
screen:
MOVAX,0600h
MOVBH,0F0h
MOVCX,0000h
MOVDX,184Fh
INT10h ;³õʼ»¯ÆÁÄ»(Ç°¾°ÎªºÚÉ«,±³¾°Îª»Ò°×,×Ö·ûÉÁ˸)
MOVDL,1Ah
MOVSI,0619h ;´Ó0619H´¦ÏÔʾ×Ö·û(ÒòΪ³ÌÐò½«±»¶ÁÈëÁË0000:0600´¦£¬
;ʵ¼ÊÏÔʾµÄÒ²¾ÍÊÇÏÖÔÚµÄwords´¦¿ªÊ¼µÄ×Ö·û´®)
DISPLAY:
MOV AH,02H
MOV DH,10H
MOV BH,00H
INT 10H
MOV AL,[SI]
CMP AL,00H
JE readMBS
MOV AH,09H
MOV CX,01H
MOV BH,00H
MOV BL,70H
INT 10H
INC DL
INC SI
JMP DISPLAY
readMBS:
MOVAX,0201h
MOVCX,0001h
MOVDX,0080h
MOVBX,1000h
INT13h ;½«Ö÷Òýµ¼Çø(¼´±¾SYSGUIDE.DAT)¶Á³öµ½0000£º1000H´¦
MOV ax,0201h
MOV cx,0006h ;¶Á0 0 6ÉÈ,(¼´Ô­À´µÄMBS)
MOV dx,0080h
MOV bX,07C00h
int 013h
readkey:
MOV AH,00H
INT 16H
CMP AL,'1' ;ÊÇ1ô£¿
JE number1
CMP AL,'2'
JE number2
CMP AL,'3'
JE number3
CMP AL,'4'
JE number4
jmp readkey
number1:
db 0a0h,0c2h,11h ;Ï൱ÓÚmov al,[011c2h],ÒòΪÓÃmov al,[011c2h]²»ÄܱàÒë
cmp al,00h
je error1
cmp al,05h
je error1
cmp al,0fh
je error1
mov ah,080h
db 88h,26h,0beh,11h ;Ï൱ÓÚmov [011beh],ah
mov ah,00h
db 88h,26h,0ceh,11h ;mov [11ceh],ah
db 88h,26h,0deh,11h ;mov [11deh],ah
db 88h,26h,0eeh,11h ;mov [11eeh],ah
jmp ok
number2:
db 0a0h,0d2h,11h ;mov al,[11d2h]
cmp al,00h
je error1
cmp al,05h
je error1
cmp al,0fh
je error1
mov ah,80h
db 88h,26h,0ceh,11h ;mov [11ceh],ah
mov ah,00h
db 88h,26h,0beh,11h ;mov [11beh],ah
db 88h,26h,0deh,11h ;mov [11deh],ah
db 88h,26h,0eeh,11h ;mov [11eeh],ah
jmp ok

error1:
jmp readkey

number3:
db 0a0h,0e2h,11h ;mov al,[11e2h]
cmp al,00h
je error1
cmp al,05h
je error1
cmp al,0fh
je error1
mov ah,80h
db 88h,26h,0deh,11h ;mov [11deh],ah
mov ah,00h
db 88h,26h,0beh,11h ;mov [11beh],ah
db 88h,26h,0ceh,11h ;mov [11ceh],ah
db 88h,26h,0eeh,11h ;mov [11eeh],ah
jmp ok
number4:
db 0a0h,0f2h,11h ;mov al,[11f2h]
cmp al,00h
je error1
cmp al,05h
je error1
cmp al,0fh
je error1
mov ah,80h
db 88h,26h,0eeh,11h ;mov [11eeh],ah
mov ah,00h
db 88h,26h,0ceh,11h ;mov [11ceh],ah
db 88h,26h,0deh,11h ;mov [11deh],ah
db 88h,26h,0beh,11h ;mov [11beh],ah
jmp ok
ok:
mov ax,0301h
mov cx,0001h
mov dx,0080h
mov bx,1000h
int 13h ; ½«¸Ä±äÁËÒýµ¼±êʾµÄ·ÖÇø±í,д»Ø0 0 1ÉÈ
MOVCX,040h
MOVDI,7dbeh
MOVSI,11beh
REPNZ MOVSW
MOV ax,0301h
MOV cx,0006h ;½«¸Ä±äÁËÒýµ¼±êʾµÄ·ÖÇø±í,д»Ø0 0 6ÉÈ
MOV dx,0080h
MOV bX,07C00h
int 013h
MOV bx,7c00h ;½»Ö´ÐÐȨ¸ø0000:7C00´¦
JMP bx ;³¤ÌøתÖÁÔ­MBR´úÂë´¦Ö´ÐÐ

CODE ENDS
END START
´úÂëµ½´Ë¾Í½²ÍêÁË£¬³ÌÐò±¾Éí²»¸´ÔÓ£¬Ö»ÒªÄãÁ˽âÁËʵÏÖÔ­Àí£¬ÔÚʵÏÖʱ²Å»áµÃÐÄÓ¦ÊÖ£¬ºÃÁË£¬¸Ï¿ì°ÑÎÒÃǵÄÔ´´úÂë±àÒëÁ´½Óһϣ¬°ÑÄ£¿é¶þµÃµ½µÄ³ÌÐòÈ¡ÃûΪSYSGUIDE.EXE£¬´ÓÄ£¿éÒ»ËùµÃµÄ³ÌÐòÖÐÌáÈ¡³öÎÒÃÇÒªµÄ³ÌÐòÈ¡Ãû½ÐSYSGUIDE.DAT£¬ÌáÈ¡·½·¨ÈçÏ£º
1¡¢ÔÚDOS·½Ê½ÏÂ,ÊäÈë¡°DEBUG GUIDE.EXE¡±£¬ÆäÖÐGUIDE.EXEÊÇÎÒÃÇÓÃÄ£¿éÒ»µÃµ½µÄ³ÌÐòÎļþ£¨ÔÚ´ËÇ¿ÁÒ¾¯¸æǧÍò²»ÒªÔËÐÐÕâ¸öGUIDE.EXE³ÌÐò£©£¬
2¡¢ÔÚDEBUGÌáʾ·ûÏÂÊäÈ룺R CX£¨»Ø³µ£© 1BD£¨»Ø³µ£© N£¨»Ø³µ£© SYSGUIDE.DAT(»Ø³µ) W£¨»Ø³µ£©Q£¨»Ø³µ£©¡£ÕâÑùÄã¾Í»á·¢ÏÖÔÚÄ㵱ǰµÄĿ¼ÖоÍÓÐÁËÒ»¸öÃûΪSYSGUIDE.DATµÄÎļþ£¬×žÍÊÇÎÒÃǽ«ÓÃÀ´Ð´ÈëÓ²Å̵ÚÒ»ÉÈÇøµÄÉÈÇø³ÌÐòÎļþÁË£¬¸Ï¿ì°ÑËüºÍSYSGUIDE.EXEÎļþ¿½±´µ½Ò»¸öÎļþ¼ÐÏ°ɡ£
ºÃÁË£¬ÎÒÃÇÒªµÄ³ÌÐòÒѾ­µÃµ½ÁË£¬¾ÍÈÃÎÒÃÇÀ´ÓÃÓÿ´£¬ÔÚÎÒÃÇ×îºó°²×°µÄWIN98ÖÐÖ´Ðаɣ¬µ±¿´µ½ÒÔÏÂÌáʾʱ£¬¼üÈëÊý×Ö¼ü¡°1¡±¡£
'Please choose the number (1)Install the SYSGUIDE
(2) Delete the SYSGUIDE
È»ºóÖØÐÂÆô¶¯£¬ÔõôÑù£¬ÊDz»ÊÇ¿´µ½ÁËÒýµ¼Ñ¡ÔñÌáʾ£¿²»¹ý½çÃæÊDz»Ì«ºÃ¿´ÁË^_^£¬µ«ÊÇûʲô£¬±Ï¾¹ÕâÊÇÎÒÃÇ×Ô¼ºÐ´µÄ¶àÒýµ¼³ÌÐòŶ£¡ºÃÁË£¬ÎÒÃÇÑ¡Ôñ¡°1¡±ÊÔÊÔ£¬ÊDz»ÊǽøÁËÎÒÃÇÏÈÇ°°²×°µÄWINXP£¿È»ºóÖØÐÂÆô¶¯£¬ÔÙÑ¡Ôñ¡°2¡±ÊÔÊÔ£¬ÊDz»ÊǽøÁËÎÒÃǺóÀ´°²×°µÄWIN98ÁË£¡
¶ÔÁËÎÒÃǺÃÏó»¹ÓÐÒ»¸öBOOTMAGICµÄ¹¦ÄÜûÓÐʵÏÖŶ£¬¾ÍÊdzÌÐò×Ô¶¯Ê¶±ð²Ù×÷ϵͳµÄ¹¦ÄÜ£¬ÎÒÏëÕâ¸ö¹¦ÄܾÍÁôµ½ÎÒÃǶÁÕß×Ô¼ºÈ¥À©³ä°É£¡ÎÒÔÚÕâ´óÖµÄ˵Ã÷Ò»ÏÂÔ­Àí£¬Óֻص½ÎÒÃǵıí3£¬¿´µ½ÆäÖÐÆ«ÒÆ04µÄÄǸö×Ö½Úô£¿ÆäʵBOOTMAGIC¾ÍÊÇÀûÓÃÁËÕâ¸öÔ­ÀíÀ´ÊµÏÖÖÇÄÜ»¯µÄʶ±ð²Ù×÷ϵͳµÄ£¬ÄǾßÌåÒªÔõô×öÄØ£¿ÎÒ²»Ëµ£¬×Ô¼ºÈ¥Ïë^_^¡£
ÓÖµ½ÁË˵886µÄʱºòÁË£¬ÔÙдÏÂÈ¥±à¼­¿É²»»áÓÃÁËŶ£¡¾ÍÕâÑù°É£¬ÓÐÐËȤÀ´ÌÖÂÛ£¬ÁªÏµ·½·¨µ½ÎÒµÄÔ´³ÌÐòÖÐÕÒ¡£³ÌÐò¿ÉÒÔµ½http://lsky.net/download/soft.asp?id=35ÏÂÔØ¡£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ