⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 t2.asm

📁 著名的开源链接器
💻 ASM
字号:
; t2.asm
; assemble with:
; nasm -fobj t2.asm
;
; link with
; alink -oPE t2
;
; run with
; t2
;
; expected output is four message boxes. First two say "Hello" in title
; last two say "Bye" in title
	
import start tdll.dll
import title1 tdll.dll
	
extern start
extern title1

segment code public use32 class=CODE

..start:	
exestart:
 call [start]		;display two message boxes
			;need to call [start], since start gives address
			;of Import Address Table entry, a pointer to routine

 mov ebx,[title1]	;get address of title1 from IAT
 mov [ebx],byte 'B'
 mov [ebx+1],byte 'y'
 mov [ebx+2],byte 'e'
 mov [ebx+3],byte 0

 call [start]

ret

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -