




版權說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權,請進行舉報或認領
文檔簡介
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)系上傳者。文件的所有權益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 《艾薩克·牛頓》課件
- 廣東中考英語語法單選題100道及答案
- 第五章行政組織
- 《課件制作教程:研究報告的結構與編制》
- 《壓力與形變》課件
- 《新聞報道與寫作》課件
- 《超清坦克壁紙》課件
- 委托加工協(xié)議清單
- 京東快遞工作合同范本
- 《財務分析與決策課件》
- 房屋市政工程生產(chǎn)安全重大事故隱患判定標準(2024版)宣傳海報
- 高中語文必修下冊名師全冊教案合集【word版】
- 帶電粒子在磁場中的周期性運動
- 一年級100以內(nèi)進位加法口算題
- 《特殊教育概論》考試試題及答案(完整版)
- 農(nóng)田水利渠道灌溉節(jié)水改造工程設計施工方案
- 《宿舍樓安全評價》word版
- 石油知識-石油地球物理勘探
- 承包商(外來施工人員)入廠安全培訓教學內(nèi)容課件
- 心腦血管疾病基礎知識-課件(演示)教學文案
- 農(nóng)產(chǎn)品貯藏與加工實驗
評論
0/150
提交評論