




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Irvin32.LIB
程式庫(kù)說明程式庫(kù)說明組成輸出功能資料輸出輸入功能鍵盤輸入控制處理系統(tǒng)資訊控制控制處理常用資訊處理輸出功能資料輸出WaitmsgWritebinWritecharWritedecWritehexWriteintWritestring輸入功能鍵盤輸入ReadcharReadhexReadintReadstring控制處理系統(tǒng)資訊控制ClrscrClrfDelayGotoxySettextcolor控制處理常用資訊處理DumpmemDumpregsGetcommandtailGetmsecondsRandom32RandomizeRandomrangClrscr函數(shù)功能:清除銀幕。函數(shù)使用方法:
callClrscr傳入?yún)?shù):無回傳參數(shù):無函數(shù)範(fàn)例:;清除銀幕資料。callClrscr相關(guān)函數(shù):ClrfGotoxySettextcolorClrf函數(shù)功能:游標(biāo)換行回頭(跳至下一行,或印空白行)。函數(shù)使用方法:
callClrf傳入?yún)?shù):無回傳參數(shù):無函數(shù)範(fàn)例:;游標(biāo)換行回頭。callClrf相關(guān)函數(shù):ClrscrGotoxySettextcolorReadstringDelay函數(shù)功能:暫停程式執(zhí)行,產(chǎn)生以毫秒(ms)計(jì)算之延遲。函數(shù)使用方法:
moveax,暫停毫秒數(shù)
calldelay傳入?yún)?shù):EAX,暫停之毫秒數(shù)?;貍鲄?shù):無函數(shù)範(fàn)例:;暫停1000毫秒=1秒。moveax,1000calldelay相關(guān)函數(shù):DumpregsGetcommandtailGetmsecondsRandom32RandomizeDumpmem函數(shù)功能:以Hex格式輸出一段範(fàn)圍之記憶體內(nèi)容。ESI:記憶體開始位址ECX:輸出個(gè)數(shù)EBX:輸出單位,1:byte,2:word,4:Dwd函數(shù)使用方法:
callClrscr傳入?yún)?shù):
ESI開始位址,ECX個(gè)數(shù),EBX:輸出單位,(1/2/4)?;貍鲄?shù):無函數(shù)範(fàn)例:;輸出arrayarraydword1,2,3,4,5movesi,offsetarraymovecx,lengthofarraymovebx,typearraycallDumpmem相關(guān)函數(shù):DumpregsGetcommandtailRandom32RandomizeRandomrangDumpregs函數(shù)功能:輸出目前運(yùn)算結(jié)果之CPU暫存器值。EIP=呼喊Dumpregs之下一指令可用於偵錯(cuò)。函數(shù)使用方法:
callDumpregs傳入?yún)?shù):無回傳參數(shù):無函數(shù)範(fàn)例:;清除銀幕資料。callDumpregs相關(guān)函數(shù):DumpmemGetcommandtailRandom32RandomizeRandomrangGetcommandtail函數(shù)功能:將程式之命令列複製於edx所指之位址。Edx=offsetbufferBufferbyte129DUP(0)函數(shù)使用方法:
callgetcommandtail傳入?yún)?shù):edx:儲(chǔ)存位址之偏移值回傳參數(shù):命令列字串函數(shù)範(fàn)例:.datacmdbyte129DUP(0).codemovedx,offsetcmdcallgetcommandtail;cmd=命令列字串。相關(guān)函數(shù):DumpmemDumpregsGetcommandtailGetmsecondsGetmseconds函數(shù)功能:讀取系統(tǒng)以毫秒計(jì)時(shí)之時(shí)間。能夠應(yīng)用於估算程式執(zhí)行時(shí)間。函數(shù)使用方法:
callgetmseconds傳入?yún)?shù):無回傳參數(shù):eax=毫秒數(shù)。函數(shù)範(fàn)例:.dataStarttimedword?.codecallgetmsecondsmovstarttime,eaxcalltest;計(jì)算test之執(zhí)行時(shí)間。callgetmsecondssubeax,starttime相關(guān)函數(shù):DumpmemDumpregsGetmsecondsDelayGotoxy函數(shù)功能:將游標(biāo)移至指定之文字座標(biāo)。X軸0~79Y軸0~24函數(shù)使用方法:
callgotoxy傳入?yún)?shù):
dh:Y軸(列)dl:X軸(行)回傳參數(shù):無函數(shù)範(fàn)例:;游標(biāo)移至座標(biāo)(20,10)(行列)。movdh,10movdl,20callgotoxy相關(guān)函數(shù):ClrscrClrfSettextcolorWritestringReadstringRandom32函數(shù)功能:產(chǎn)生32位元之亂數(shù)。需應(yīng)用randomize產(chǎn)生亂數(shù)種子。若不更動(dòng)亂數(shù)種子,亂數(shù)序列將不更動(dòng)。函數(shù)使用方法:
callrandom32傳入?yún)?shù):無回傳參數(shù):eax=所產(chǎn)生之亂數(shù)。函數(shù)範(fàn)例:;清除銀幕資料。,datarandvaldword?.codecallrandom32movrandval,eax相關(guān)函數(shù):DumpmemDumpregsRandomizeRandomrangRandomize函數(shù)功能:應(yīng)用系統(tǒng)時(shí)間函數(shù),產(chǎn)生亂數(shù)運(yùn)算所需之亂數(shù)種子。供Random32與randomrang使用。函數(shù)使用方法:
callrandomize傳入?yún)?shù):無回傳參數(shù):無函數(shù)範(fàn)例:;產(chǎn)生十組亂數(shù)。callrandomizemovecx,10L1:callrandom32;儲(chǔ)存eax亂數(shù)值loopL1相關(guān)函數(shù):DumpmemDumpregsRandom32RandomrangRandomrang函數(shù)功能:產(chǎn)生0~(n-1)之亂數(shù)。需應(yīng)用randomize產(chǎn)生亂數(shù)種子。範(fàn)圍n由EAX設(shè)定函數(shù)使用方法:
callrandomrang傳入?yún)?shù):EAX=n回傳參數(shù):
eax=所產(chǎn)生之亂數(shù)函數(shù)範(fàn)例:,datarandvaldword?.codemoveax,5000callrandomrang;產(chǎn)生0~4999之亂數(shù)movrandval,eax相關(guān)函數(shù):DumpmemDumpregsRandom32RandomizeReadchar函數(shù)功能:由鍵盤輸入一字元,該字元不顯示於銀幕。輸入時(shí)只由鍵盤讀取一字元。函數(shù)使用方法:
callreadchar傳入?yún)?shù):無回傳參數(shù):al=輸入之字元。函數(shù)範(fàn)例:;由鍵盤輸入一字元。.datachbyte?.codecallreadcharmovch,al相關(guān)函數(shù):ReadhexReadintReadstringWritecharWritestringReadhex函數(shù)功能:由鍵盤輸入32位元之Hex格式之資料。並不會(huì)檢查數(shù)字之正確性。函數(shù)使用方法:
callreadhex傳入?yún)?shù):無回傳參數(shù):eax=輸入之?dāng)?shù)值。函數(shù)範(fàn)例:;由鍵盤輸入一Hex數(shù)字。.datahexvaldword?.codecallreadhexmovhexval,eax相關(guān)函數(shù):ReadcharReadintReadstringWritehexWritestringReadint函數(shù)功能:由鍵盤輸入32位元之有號(hào)數(shù)之?dāng)?shù)值資料。超出範(fàn)圍(-2,147,483,648~+2,147,483,647)顯示錯(cuò)誤訊息。函數(shù)使用方法:
callreadint傳入?yún)?shù):無回傳參數(shù):eax=輸入之?dāng)?shù)值。函數(shù)範(fàn)例:;由鍵盤輸入一Hex數(shù)字。.dataintvalSDword?.codecallreadintmovintval,eax相關(guān)函數(shù):ReadcharReadhexReadstringWriteintWritestringReadstring函數(shù)功能:由鍵盤輸入字串。函數(shù)使用方法:
callreadstring傳入?yún)?shù):edx=buffer之偏移值Ecx=最大字元數(shù)=sizeof(buffer)-1回傳參數(shù):buffer=輸入字串。Eax=字串字元數(shù)。函數(shù)範(fàn)例:.databufferbyte50DUP(0)bytecountdword?.codemovedxoffsetbuffermovecx,(sizeofbuffer)-1callreadstringmovbytecount,eax相關(guān)函數(shù):ReadcharReadhexReadintWritestringSettextcolor函數(shù)功能:設(shè)定文字顏色。黑=0紅=4灰=8淡紅=12藍(lán)=1洋紅=5淡藍(lán)=9淡洋紅=13綠=2棕=6淡綠=10黃=14青綠=3淡灰=7淡青綠=11白=15函數(shù)使用方法:
callsettextcolor傳入?yún)?shù):eax=顏色設(shè)定Eax=前景顏色+顏色背景*16回傳參數(shù):無函數(shù)範(fàn)例:;白色字藍(lán)底。;moveax,white+(blue*16)
moveax,15+(1*16)callsettextcolor相關(guān)函數(shù):ClrscrClrfGotoxyWriteintWritestringWaitmsg函數(shù)功能:程式停止執(zhí)行,等待輸入[enter]。並顯示”press[enter]tocontinue…”。函數(shù)使用方法:
callwaitmsg傳入?yún)?shù):無回傳參數(shù):無函數(shù)範(fàn)例:;程式停止執(zhí)行等待輸入[enter]。callwaitmsg相關(guān)函數(shù):WritecharWritestringGotoxySettextcolorWritebin函數(shù)功能:輸出32bit資料,以binary之格式。函數(shù)使用方法:
callwritebin傳入?yún)?shù):eax=待輸出資料回傳參數(shù):無函數(shù)範(fàn)例:;以binary之格式輸出資料。moveax,17callwritebin相關(guān)函數(shù):ReadhexWaitmsg
Writechar
WritehexWritestringWritechar函數(shù)功能:輸出一字元。函數(shù)使用方法:
callwritechar傳入?yún)?shù):al=待輸出之字元回傳參數(shù):無函數(shù)範(fàn)例:;輸出’a’。moval,‘a(chǎn)’callwritechar相關(guān)函數(shù):ReadcharWaitmsgWritebinWriteintWritestringWritedec函數(shù)功能:輸出32bit之無號(hào)整數(shù)(十進(jìn)位格式)。函數(shù)使用方法:
callClrscr傳入?yún)?shù):eax=待輸出數(shù)值回傳參數(shù):無函數(shù)範(fàn)例:;輸出295。moveax,295callwritedec相關(guān)函數(shù):ReadintWaitmsgWritebinWritehexWritestringWritehex函數(shù)功能:輸出32bit之整數(shù)(十六進(jìn)位格式)。函數(shù)使用方法:
callwritehex傳入?yún)?shù):eax=待輸出數(shù)值回傳參數(shù):無函數(shù)範(fàn)例:;輸出7FFFh。moveax,7FFFhcallwritehex相關(guān)函數(shù):ReadhexWaitmsgWritebinWritehexWriteint函數(shù)功能:輸出32bit之有號(hào)整數(shù)(十進(jìn)位格式)。函數(shù)使用方法:
callwriteint傳入?yún)?shù):
eax=待輸出數(shù)值回傳參數(shù):無函數(shù)範(fàn)例:;輸出216543。moveax,216543callwriteint相關(guān)函數(shù):
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫(kù)網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 綜合故障監(jiān)測(cè)平臺(tái)-洞察闡釋
- 醫(yī)療機(jī)構(gòu)員工培訓(xùn)及考核計(jì)劃
- 國(guó)際法對(duì)氣候變化的多邊適應(yīng)機(jī)制-洞察闡釋
- 小學(xué)環(huán)境保護(hù)安全應(yīng)急演練計(jì)劃
- 心理健康干預(yù)與情緒管理-洞察闡釋
- 編碼工具性能優(yōu)化-洞察闡釋
- 催化分子轉(zhuǎn)化效率提升-洞察闡釋
- 科研機(jī)構(gòu)環(huán)境保護(hù)體系與廢物管理措施
- 數(shù)據(jù)驅(qū)動(dòng)的環(huán)保設(shè)備制造優(yōu)化方法研究-洞察闡釋
- 復(fù)雜曲面建筑打印技術(shù)-洞察闡釋
- 中復(fù)神鷹碳纖維西寧有限公司年產(chǎn)14000噸高性能碳纖維及配套原絲建設(shè)項(xiàng)目環(huán)評(píng)報(bào)告
- 礦山采掘計(jì)劃終稿
- 電磁場(chǎng)與電磁波電磁波的輻射
- 四羊方尊專題知識(shí)
- 【教案】 電源與電流 教學(xué)設(shè)計(jì) -2022-2023學(xué)年高二上學(xué)期物理人教版(2019)必修第三冊(cè)
- GB/T 40805-2021鑄鋼件交貨驗(yàn)收通用技術(shù)條件
- GB 18401-2003國(guó)家紡織產(chǎn)品基本安全技術(shù)規(guī)范
- 《科研創(chuàng)新實(shí)踐》課程教學(xué)大綱
- 報(bào)價(jià)單模板及范文(通用十二篇)
- 開發(fā)票申請(qǐng)單
- 五年級(jí)異分母分?jǐn)?shù)加減法第一課時(shí)課件
評(píng)論
0/150
提交評(píng)論