




版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進(jìn)行舉報或認(rèn)領(lǐng)
文檔簡介
1、程序中使用花指令(Delphi源碼)unit Ex3Main;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, StdCtrls, ComCtrls;type TForm1 = class(TForm) Button1: TButton; Button2: TButton; Button3: TButton; Button4: TButton; Button5: TButton; Button6: TButton; Button7: TButton;
2、 Button8: TButton; Button9: TButton; Button10: TButton; Button11: TButton; Button12: TButton; StatusBar1: TStatusBar; procedure Button1Click(Sender: TObject); procedure Button2Click(Sender: TObject); procedure Button3Click(Sender: TObject); procedure Button4Click(Sender: TObject); procedure Button5C
3、lick(Sender: TObject); procedure Button6Click(Sender: TObject); procedure Button7Click(Sender: TObject); procedure Button8Click(Sender: TObject); procedure Button9Click(Sender: TObject); procedure Button10Click(Sender: TObject); procedure Button11Click(Sender: TObject); procedure Button12Click(Sende
4、r: TObject); private Private declarations public Public declarations end;var Form1: TForm1;implementation$R *.dfm/第1種花指令procedure TForm1.Button1Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm jb label jnb label db $E8 label: end; if a>b then Messagebox(Handle,'a>b','i
5、nfo',MB_OK);end;/第2種花指令procedure TForm1.Button2Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm je label jne label db $E8 label: end; if a>b then Messagebox(Handle,'a>b','info',MB_OK);end;/第3種花指令procedure TForm1.Button3Click(Sender: TObject);var a,b:Integer;beg
6、in a:=20;b:=10; asm jbe label ja label db $E8 label: end; if a>b then Messagebox(Handle,'a>b','info',MB_OK);end;/第4種花指令procedure TForm1.Button4Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm js label jns label db $E8 label: end; if a>b then Messagebox(Handle,
7、39;a>b','info',MB_OK);end;/第5種花指令procedure TForm1.Button5Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm jpe label jpo label db $E8 label: end; if a>b then Messagebox(Handle,'a>b','info',MB_OK);end;/第6種花指令procedure TForm1.Button6Click(Sender: TObjec
8、t);var a,b:Integer;begin a:=20;b:=10; asm jl label jge label db $E8 label: end; if a>b then Messagebox(Handle,'a>b','info',MB_OK);end;/第7種花指令procedure TForm1.Button7Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm jle label jg label db $E8 label: end; if a>b the
9、n Messagebox(Handle,'a>b','info',MB_OK);end;/第8種花指令procedure TForm1.Button8Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm jz label jnz label db $E8 label: end; if a>b then Messagebox(Handle,'a>b','info',MB_OK);end;/第9種花指令procedure TForm1.Button
10、9Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm push ecx xor ecx,ecx jcxz label db $E8 label: pop ecx end; if a>b then Messagebox(Handle,'a>b','info',MB_OK);end;/第10種花指令procedure TForm1.Button10Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm jl labe
11、l1 label2: jmp label3 db $E8 label1: jz label2 label3: end; if a>b then Messagebox(Handle,'a>b','info',MB_OK);end;/第11種花指令procedure TForm1.Button11Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm call label1 db $E8 jmp label2 db $E8 label1: pop eax jmp label3 db $E8,$E8,$E8 label3: inc eax jmp label4 db $E8,$E8,$E8 label4: jmp eax db $E8 label2: end; if a>b then Messagebox(Handle,'a>b','info',MB_OK);end;/第12種花指令procedure TForm1.Button12Click(Sender: TObject);var a,b:Integer;begin a:=20;b:=10; asm call label1 db $E8,$E8 jmp label4 label1
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時也不承擔(dān)用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 廣西生態(tài)工程職業(yè)技術(shù)學(xué)院《嵌入式綜合實訓(xùn)》2023-2024學(xué)年第二學(xué)期期末試卷
- 保定學(xué)院《3S技術(shù)在風(fēng)景園林中的應(yīng)用》2023-2024學(xué)年第一學(xué)期期末試卷
- 廣西生態(tài)工程職業(yè)技術(shù)學(xué)院《第二外語4》2023-2024學(xué)年第二學(xué)期期末試卷
- 預(yù)防接種程序
- 防踩踏安全課件
- 金工安全規(guī)范
- 非暴力溝通在臨床的應(yīng)用
- 譚談交通安全知識
- 2024入團考試題庫含答案
- 2024秋季新教材七年級語文上冊第三單元教案設(shè)計(含寫作課)
- 2025年公共衛(wèi)生相關(guān)試題及答案
- 2025年陜西省咸陽市秦都區(qū)啟迪中學(xué)九年級中考一模數(shù)學(xué)試題(原卷版+解析版)
- 嘉德委托拍賣合同范本
- 2025年合肥經(jīng)濟技術(shù)職業(yè)學(xué)院單招職業(yè)技能測試題庫含答案
- 2025年河南應(yīng)用技術(shù)職業(yè)學(xué)院單招職業(yè)技能測試題庫新版
- 2025年上半年黑龍江鶴崗市興山區(qū)招聘事業(yè)單位人員5人重點基礎(chǔ)提升(共500題)附帶答案詳解-1
- 區(qū)域臨床檢驗中心
- 2024年版人民醫(yī)院新院建設(shè)施工合作合同一
- 基于大數(shù)據(jù)的拉薩旅游業(yè)市場分析
- 術(shù)后疼痛病人中醫(yī)護(hù)理
- 布局經(jīng)營-繪畫構(gòu)圖基礎(chǔ) 課件-2024-2025學(xué)年高中美術(shù)人美版(2019)選擇性必修1 繪畫
評論
0/150
提交評論