




版權(quán)說(shuō)明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡(jiǎn)介
Irvin32.LIB
程式庫(kù)說(shuō)明程式庫(kù)說(shuō)明組成輸出功能資料輸出輸入功能鍵盤輸入控制處理系統(tǒng)資訊控制控制處理常用資訊處理輸出功能資料輸出WaitmsgWritebinWritecharWritedecWritehexWriteintWritestring輸入功能鍵盤輸入ReadcharReadhexReadintReadstring控制處理系統(tǒng)資訊控制ClrscrClrfDelayGotoxySettextcolor控制處理常用資訊處理DumpmemDumpregsGetcommandtailGetmsecondsRandom32RandomizeRandomrangClrscr函數(shù)功能:清除銀幕。函數(shù)使用方法:
callClrscr傳入?yún)?shù):無(wú)回傳參數(shù):無(wú)函數(shù)範(fàn)例:;清除銀幕資料。callClrscr相關(guān)函數(shù):ClrfGotoxySettextcolorClrf函數(shù)功能:游標(biāo)換行回頭(跳至下一行,或印空白行)。函數(shù)使用方法:
callClrf傳入?yún)?shù):無(wú)回傳參數(shù):無(wú)函數(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ù):無(wú)函數(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ù):無(wú)函數(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ù):無(wú)回傳參數(shù):無(wú)函數(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ù):無(wú)回傳參數(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ù):無(wú)函數(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ù):無(wú)回傳參數(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ù):無(wú)回傳參數(shù):無(wú)函數(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ù):無(wú)回傳參數(shù):al=輸入之字元。函數(shù)範(fàn)例:;由鍵盤輸入一字元。.datachbyte?.codecallreadcharmovch,al相關(guān)函數(shù):ReadhexReadintReadstringWritecharWritestringReadhex函數(shù)功能:由鍵盤輸入32位元之Hex格式之資料。並不會(huì)檢查數(shù)字之正確性。函數(shù)使用方法:
callreadhex傳入?yún)?shù):無(wú)回傳參數(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ù):無(wú)回傳參數(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ù):無(wú)函數(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ù):無(wú)回傳參數(shù):無(wú)函數(shù)範(fàn)例:;程式停止執(zhí)行等待輸入[enter]。callwaitmsg相關(guān)函數(shù):WritecharWritestringGotoxySettextcolorWritebin函數(shù)功能:輸出32bit資料,以binary之格式。函數(shù)使用方法:
callwritebin傳入?yún)?shù):eax=待輸出資料回傳參數(shù):無(wú)函數(shù)範(fàn)例:;以binary之格式輸出資料。moveax,17callwritebin相關(guān)函數(shù):ReadhexWaitmsg
Writechar
WritehexWritestringWritechar函數(shù)功能:輸出一字元。函數(shù)使用方法:
callwritechar傳入?yún)?shù):al=待輸出之字元回傳參數(shù):無(wú)函數(shù)範(fàn)例:;輸出’a’。moval,‘a(chǎn)’callwritechar相關(guān)函數(shù):ReadcharWaitmsgWritebinWriteintWritestringWritedec函數(shù)功能:輸出32bit之無(wú)號(hào)整數(shù)(十進(jìn)位格式)。函數(shù)使用方法:
callClrscr傳入?yún)?shù):eax=待輸出數(shù)值回傳參數(shù):無(wú)函數(shù)範(fàn)例:;輸出295。moveax,295callwritedec相關(guān)函數(shù):ReadintWaitmsgWritebinWritehexWritestringWritehex函數(shù)功能:輸出32bit之整數(shù)(十六進(jìn)位格式)。函數(shù)使用方法:
callwritehex傳入?yún)?shù):eax=待輸出數(shù)值回傳參數(shù):無(wú)函數(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ù):無(wú)函數(shù)範(fàn)例:;輸出216543。moveax,216543callwriteint相關(guān)函數(shù):
溫馨提示
- 1. 本站所有資源如無(wú)特殊說(shuō)明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁(yè)內(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ì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 計(jì)算機(jī)軟件升級(jí)合同
- 維修工程勞務(wù)合同
- 法人授權(quán)協(xié)議
- 五金批發(fā)市場(chǎng)企業(yè)品牌傳播渠道拓展與優(yōu)化考核試卷
- 洗滌設(shè)備的定制化市場(chǎng)需求考核試卷
- 玻璃制品檢測(cè)儀器操作考核試卷
- 百貨零售企業(yè)風(fēng)險(xiǎn)管理體系構(gòu)建考核試卷
- 電動(dòng)汽車噪音與振動(dòng)控制技術(shù)考核試卷
- 礦物加工過(guò)程中的數(shù)學(xué)建模與應(yīng)用-石墨滑石考核試卷
- 絹紡和絲織的智能制造技術(shù)發(fā)展現(xiàn)狀與趨勢(shì)分析考核試卷
- 壓軸題10 壓強(qiáng)與浮力選填壓軸題(解析版)-2023年中考物理壓軸題專項(xiàng)訓(xùn)練
- 中醫(yī)外科 男性不育癥
- (正式版)JTT 1490-2024 港口安全設(shè)施分類與編碼
- 21《楊氏之子》公開課一等獎(jiǎng)創(chuàng)新教案
- 車輛應(yīng)急預(yù)案方案惡劣天氣
- 【部編版】語(yǔ)文五年級(jí)下冊(cè)第五單元《交流平臺(tái) 初試身手》精美課件
- 枇杷文化知識(shí)講座
- 浙江偉鋒藥業(yè)有限公司年產(chǎn)100噸拉米夫定、50噸恩曲他濱、30噸卡培他濱技改項(xiàng)目環(huán)境影響報(bào)告
- 公路養(yǎng)護(hù)安全作業(yè)規(guī)程-四級(jí)公路養(yǎng)護(hù)作業(yè)控制區(qū)布置
- 八年級(jí)家長(zhǎng)會(huì)領(lǐng)導(dǎo)講話4篇
- 美世國(guó)際職位評(píng)估體系IPE3.0使用手冊(cè)
評(píng)論
0/150
提交評(píng)論