tcoff.asm
来自「著名的开源链接器」· 汇编 代码 · 共 34 行
ASM
34 行
;Sample COFF object file
;assemble with
;NASM -fwin32 tcoff.asm
;link with
;ALINK -oPE tcoff win32.lib -entry main
[extern MessageBoxA]
[extern __imp_MessageBoxA]
[segment .text]
[global main]
main:
push dword 0 ; OK button
push dword title1
push dword string1
push dword 0
call MessageBoxA
push dword 0 ; OK button
push dword title1
push dword string2
push dword 0
call [__imp_MessageBoxA]
ret
[segment .data]
string1: db 'hello world, through redirection',13,10,0
title1: db 'Hello',0
string2: db 'hello world, called through import table',13,10,0
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?