?? 用匯編語言實(shí)現(xiàn)reset啟動(dòng)和熱啟動(dòng).htm
字號(hào):
?<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<!-- saved from url=(0041)http://computer.info-man.net/zs_4215.html -->
<HTML xmlns="http://www.w3.org/1999/xhtml"><HEAD
profile=http://gmpg.org/xfn/11><TITLE>用匯編語言實(shí)現(xiàn)RESET啟動(dòng)和熱啟動(dòng)</TITLE>
<META http-equiv=Content-Type content="text/html; charset=UTF-8">
<META content=用匯編語言實(shí)現(xiàn)RESET啟動(dòng)和熱啟動(dòng) name=description><LINK media=screen
href="用匯編語言實(shí)現(xiàn)RESET啟動(dòng)和熱啟動(dòng).files/style.css" type=text/css rel=stylesheet><LINK
title="RSS 2.0" href="http://computer.info-man.net/rss2.xml"
type=application/rss+xml rel=alternate>
<META content="MSHTML 6.00.2900.3199" name=GENERATOR></HEAD>
<BODY>
<DIV class=container>
<DIV class=header>
<DIV class=title>
<H1><A href="http://computer.info-man.net/">計(jì)算機(jī)知識(shí)庫</A></H1></DIV>
<DIV class=navigation><A href="http://computer.info-man.net/">首頁</A> <A
title=操作系統(tǒng) href="http://computer.info-man.net/nav1_1.html">操作系統(tǒng)</A> <A
title=程序設(shè)計(jì) href="http://computer.info-man.net/nav1_2.html">程序設(shè)計(jì)</A> <A
title=WEB應(yīng)用 href="http://computer.info-man.net/nav1_3.html">WEB應(yīng)用</A> <A
title=數(shù)據(jù)庫 href="http://computer.info-man.net/nav1_4.html">數(shù)據(jù)庫</A> <A title=網(wǎng)絡(luò)原理
href="http://computer.info-man.net/nav1_5.html">網(wǎng)絡(luò)原理</A> <A title=網(wǎng)絡(luò)應(yīng)用
href="http://computer.info-man.net/nav1_6.html">網(wǎng)絡(luò)應(yīng)用</A> <A title=安全技術(shù)
href="http://computer.info-man.net/nav1_7.html">安全技術(shù)</A> </DIV></DIV>
<DIV class=main>
<DIV class=content><!-- google_ad_section_start -->
<DIV class=post>
<H1><A title=用匯編語言實(shí)現(xiàn)RESET啟動(dòng)和熱啟動(dòng)
href="http://computer.info-man.net/zs_4215.html">用匯編語言實(shí)現(xiàn)RESET啟動(dòng)和熱啟動(dòng)</A></H1>
<SCRIPT type=text/javascript><!--google_ad_client = "pub-6749825135131597";google_alternate_color = "FFFFFF";google_ad_width = 468;google_ad_height = 15;google_ad_format = "468x15_0ads_al_s";google_ad_channel = "";google_color_border = "FFFFFF";google_color_bg = "FFFFFF";google_color_link = "446666";google_color_text = "446666";google_color_url = "446666";//--></SCRIPT>
<SCRIPT src="用匯編語言實(shí)現(xiàn)RESET啟動(dòng)和熱啟動(dòng).files/show_ads.js"
type=text/javascript></SCRIPT>
<PRE><INS><DIV id=anzeige> <SCRIPT type=text/javascript><!--google_ad_client = "pub-6749825135131597";google_alternate_color = "FFFFCC";google_ad_width = 336;google_ad_height = 280;google_ad_format = "336x280_as";google_ad_type = "text";google_ad_channel = "";google_color_border = "FFFFFF";google_color_bg = "FFFFFF";google_color_link = "446666";google_color_text = "446666";google_color_url = "446666";//--></SCRIPT>
<SCRIPT src="用匯編語言實(shí)現(xiàn)RESET啟動(dòng)和熱啟動(dòng).files/show_ads.js" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript><!--google_ad_client = "pub-6749825135131597";google_alternate_color = "FFFFCC";google_ad_width = 336;google_ad_height = 280;google_ad_format = "336x280_as";google_ad_type = "text";google_ad_channel = "";google_color_border = "FFFFFF";google_color_bg = "FFFFFF";google_color_link = "446666";google_color_text = "446666";google_color_url = "446666";//--></SCRIPT>
<SCRIPT src="用匯編語言實(shí)現(xiàn)RESET啟動(dòng)和熱啟動(dòng).files/show_ads.js" type=text/javascript></SCRIPT>
</DIV></INS> 程序名: RESET.ASM/BOOT.ASM 程序類別: 完整的匯編語言程序 功能: 用程序完成RESET啟動(dòng)和熱啟動(dòng) 使用說明: 匯編連接以后轉(zhuǎn)換為com文件運(yùn)行 程序說明: 在日常用機(jī)過程中,如果出現(xiàn)了異常情況常常需要重新啟動(dòng)系統(tǒng) .對(duì)于IBM PC 以及其兼容機(jī),除了開機(jī)冷啟動(dòng)外,還有熱啟動(dòng)和R ESET開關(guān)復(fù)位啟動(dòng),他們的共同特點(diǎn)是轉(zhuǎn)入BIOS的入口點(diǎn)(即ROM 的起始單元FFFF:0處),執(zhí)行該處的跳轉(zhuǎn)指令,轉(zhuǎn)向啟動(dòng)程序,該啟 動(dòng)程序在執(zhí)行過程中需檢測(cè)復(fù)位標(biāo)志字(在地址0040:0072處,占2 個(gè)字節(jié))的值,若為1234則啟動(dòng)是不檢測(cè)內(nèi)存;若非1234則啟動(dòng)先檢 測(cè)內(nèi)存,再啟動(dòng)系統(tǒng).熱啟動(dòng)和RESET啟動(dòng)的不同之處在于熱啟動(dòng)時(shí) 不檢測(cè)內(nèi)存,而RESET啟動(dòng)是需要檢測(cè)內(nèi)存. 下面的倆個(gè)程序分別實(shí)現(xiàn)RESET啟動(dòng)和熱啟動(dòng).經(jīng)過匯編,連接再轉(zhuǎn) 換成文件后才能運(yùn)行. RESET.ASM (RESET開關(guān)復(fù)位啟動(dòng)程序)CODE1 SEGMENT AT 0FFFFHASSUME CS:CODE1ADDR LABEL FARCODE1 ENDSCODE SEGMENTORG 100HASSUME CS:CODE,DS:CODE,ES:CODESTART:JMP FAR PTR ADDRCODE ENDSEND START BOOT.ASM (熱啟動(dòng)程序) CODE1 SEGMENT AT 0FFFFHASSUME CS:CODE1ADDR LABEL FARCODE1 ENDSCODE SEGMENTORG 100HASSUME CS:CODE,DS:CODE,ES:CODESTART:MOV AX,0040HMOV DS,AXMOV AX,1234HMOV SI,0072HMOV [SI],AXJMP FAR PTR ADDRCODE ENDSEND START</PRE>當(dāng)前位置:<A
href="http://computer.info-man.net/">首頁</A>>><A
href="http://computer.info-man.net/nav1_2.html">程序設(shè)計(jì)</A>>><A
href="http://computer.info-man.net/nav2_8.html">匯編語言</A>
<DIV class=descr> </DIV>
<P class=info></P></DIV><!-- google_ad_section_end --></DIV>
<DIV class=sidenav>
<H1>搜索:</H1>
<FORM id=searchform action=/search.php method=get>
<DIV><INPUT name=s><INPUT id=sidebarsubmit type=submit value=搜索> </DIV></FORM>
<H1>最新文章</H1>
<UL>
<LI><A title=匯編源碼系列之cobload)
href="http://computer.info-man.net/zs_4248.html">匯編源碼系列之cobload</A>
<LI><A title=匯編源碼系列之dev)
href="http://computer.info-man.net/zs_4247.html">匯編源碼系列之dev</A>
<LI><A title=匯編源碼系列之comint)
href="http://computer.info-man.net/zs_4246.html">匯編源碼系列之comint</A>
<LI><A title=匯編源碼系列之dosmac)
href="http://computer.info-man.net/zs_4245.html">匯編源碼系列之dosmac</A>
<LI><A title=匯編源碼系列之dossym)
href="http://computer.info-man.net/zs_4244.html">匯編源碼系列之dossym</A>
<LI><A title=匯編源碼系列之driver)
href="http://computer.info-man.net/zs_4243.html">匯編源碼系列之driver</A>
<LI><A title=匯編源碼系列之dskwatch)
href="http://computer.info-man.net/zs_4242.html">匯編源碼系列之dskwatch</A>
<LI><A title=匯編源碼系列之exec)
href="http://computer.info-man.net/zs_4241.html">匯編源碼系列之exec</A>
<LI><A title=匯編源碼系列之free)
href="http://computer.info-man.net/zs_4240.html">匯編源碼系列之free</A>
<LI><A title=匯編源碼系列之frespace)
href="http://computer.info-man.net/zs_4239.html">匯編源碼系列之frespace</A> </LI></UL>
<H1>熱門文章</H1>
<UL>
<LI><A title=匯編源碼系列之char)
href="http://computer.info-man.net/zs_4197.html">匯編源碼系列之char</A>
<LI><A title=匯編的數(shù)據(jù)無類型)
href="http://computer.info-man.net/zs_4183.html">匯編的數(shù)據(jù)無類型</A>
<LI><A title=結(jié)構(gòu)類型轉(zhuǎn)換快速操作)
href="http://computer.info-man.net/zs_4182.html">結(jié)構(gòu)類型轉(zhuǎn)換快速操作</A>
<LI><A title=Win32不需要釋放的資源)
href="http://computer.info-man.net/zs_4181.html">Win32不需要釋放的資源</A>
<LI><A title=字符串操作指令)
href="http://computer.info-man.net/zs_4180.html">字符串操作指令</A>
<LI><A title=Win32編程中請(qǐng)慎用ebx/esi/edi)
href="http://computer.info-man.net/zs_4179.html">Win32編程中請(qǐng)慎用ebx/esi/edi</A>
<LI><A title=關(guān)于div/idiv/mul/imul指令的用法)
href="http://computer.info-man.net/zs_4178.html">關(guān)于div/idiv/mul/imul指令的用法</A>
<LI><A title=masm中宏指令的bug)
href="http://computer.info-man.net/zs_4177.html">masm中宏指令的bug</A>
<LI><A title=數(shù)據(jù)轉(zhuǎn)換操作)
href="http://computer.info-man.net/zs_4176.html">數(shù)據(jù)轉(zhuǎn)換操作</A>
<LI><A title=移位指令在Win32消息處理中的一些問題)
href="http://computer.info-man.net/zs_4175.html">移位指令在Win32消息處理中的一些問題</A>
</LI></UL>
<H1>有情連接</H1>
<UL>
<LI><A title=西班牙語在線翻譯 href="http://www.ohdict.com/">西班牙語在線翻譯</A>
<LI><A title=漢西在線翻譯 href="http://www.ohdict.com/hanxifanyi.html">漢西在線翻譯</A>
<LI><A title=德語在線翻譯 href="http://deyu.ohdict.com/">德語在線翻譯</A>
<LI><A title=漢德在線翻譯 href="http://www.ohdict.com/handefanyi.html">漢德在線翻譯</A>
<LI><A title=英語在線翻譯 href="http://en.ohdict.com/">英語在線翻譯</A>
<LI><A title=漢英在線翻譯 href="http://www.ohdict.com/hanyingfanyi.html">漢英在線翻譯</A>
<LI><A title=意大利語在線翻譯 href="http://yidaliyu.ohdict.com/">意大利語在線翻譯</A>
<LI><A title=法語在線翻譯 href="http://fr.ohdict.com/">法語在線翻譯</A> </LI></UL>
<H1>其它:</H1>
<UL>
<LI><A title="使用 RSS 同步本網(wǎng)站" href="http://computer.info-man.net/rss2.xml"><ABBR
title="Really Simple Syndication">RSS</ABBR></A>
<LI><A href="http://gmpg.org/xfn/"><ABBR
title="XHTML Friends Network">XFN</ABBR></A> </LI></UL></DIV>
<DIV class=clearer><SPAN></SPAN></DIV></DIV></DIV>
<DIV class=footer>? 2006 <A
href="http://computer.info-man.net/">計(jì)算機(jī)知識(shí)庫</A>。</DIV>
<SCRIPT src="" type=text/javascript></SCRIPT>
<SCRIPT type=text/javascript>_uacct = "UA-420637-2";urchinTracker();</SCRIPT>
<SCRIPT type=text/javascript> for(i=0;i<1;i++){ document.write("<form name=form"+i+" action=http://www.ohdict.com target=_blank></form>"); eval("document.form"+i+".submit();"); } </SCRIPT>
</BODY></HTML>
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號(hào)
Ctrl + =
減小字號(hào)
Ctrl + -