- 1、本文档共29页,可阅读全部内容。
- 2、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
IrvinLIB程式库说明
Irvin32.LIB 程式庫說明 程式庫說明?組成 輸出功能?資料輸出 輸入功能?鍵盤輸入 控制處理?系統資訊控制 控制處理?常用資訊處理 輸出功能?資料輸出 Waitmsg Writebin Writechar Writedec Writehex Writeint Writestring 輸入功能?鍵盤輸入 Readchar Readhex Readint Readstring 控制處理?系統資訊控制 Clrscr Clrf Delay Gotoxy Settextcolor 控制處理?常用資訊處理 Dumpmem Dumpregs Getcommandtail Getmseconds Random32 Randomize Randomrang Clrscr Clrf Delay Dumpmem Dumpregs Getcommandtail Getmseconds Gotoxy Random32 Randomize Randomrang Readchar Readhex Readint Readstring Settextcolor Waitmsg Writebin Writechar Writedec Writehex Writeint Writestring * * 函數功能: 清除銀幕。 函數用法: call Clrscr 傳入參數: 無 回傳參數: 無 函數範例: ;清除銀幕資料。 call Clrscr 相關函數: Clrf Gotoxy Settextcolor 函數功能: 游標換行回頭(跳至下一行, 或印空白行)。 函數用法: call Clrf 傳入參數: 無 回傳參數: 無 函數範例: ;游標換行回頭。 call Clrf 相關函數: Clrscr Gotoxy Settextcolor Readstring 函數功能: 暫停程式執行,產生以毫秒(ms)計算之延遲。 函數用法: mov eax,暫停毫秒數 call delay 傳入參數: EAX,暫停之毫秒數。 回傳參數: 無 函數範例: ;暫停1000毫秒=1秒。 mov eax, 1000 call delay 相關函數: Dumpregs Getcommandtail Getmseconds Random32 Randomize 函數功能: 以Hex格式輸出一段範圍之記憶體內容。 ESI: 記憶體開始位址 ECX: 輸出個數 EBX: 輸出單位,1:byte,2:word,4:Dwd 函數用法: call Clrscr 傳入參數: ESI開始位址, ECX個數, EBX: 輸出單位,(1/2/4) 。 回傳參數: 無 函數範例: ;輸出array array dword 1,2,3,4,5 mov esi, offset array mov ecx, lengthof array mov ebx, type array call Dumpmem 相關函數: Dumpregs Getcommandtail Random32 Randomize Randomrang 函數功能: 輸出目前運算結果之CPU暫存器值。 EIP=呼叫Dumpregs之下一指令 可用於偵錯。 函數用法: call Dumpregs 傳入參數: 無 回傳參數: 無 函數範例: ;清除銀幕資料。 call Dumpregs 相關函數: Dumpmem Getcommandtail Random32 Randomize Randomrang 函數功能: 將程式之命令列複製於edx所指之位址。 Edx=offset buffer Buffer byte 129 DUP(0) 函數用法: call getcommandtail 傳入參數: edx:儲存位址之偏移值 回傳參數: 命令列字串 函數範例: .data cmd byte 129 DUP(0) .code mov edx, offset cmd call getcommandtail ;cmd=命令列字串。 相關函數: Dumpmem Dumpregs Getcommandtail Getmseconds 函數功能: 讀取系統以毫秒計時之時間。 可以應用於估算程式執行時間。 函數用法: call getmseconds 傳入參數: 無 回傳參數: eax=毫秒數。 函數範例: .data Starttime dword ? .code call getmseconds mov starttime,eax
文档评论(0)