【发布时间】:2013-01-06 17:17:11
【问题描述】:
好的,今天我正在尝试学习一些 asm。
我正在使用 nasm 和 go 链接。这个 hello world 似乎运行良好:
bits 32
extern _MessageBoxA@16
extern _ExitProcess@4
section .data
title db 'Somme message',0
message db 'Hello World!',0
section .text
global _start
_start:
push dword 0 ; Type = MB_OK
push dword title ; Caption
push dword message ; Message
push dword 0 ; Handle = NULL
call _MessageBoxA@16
push dword 0 ; Exit Code = EXIT_SUCCESS
call _ExitProcess@4
我可以通过以下方式构建它: nasm -fwin32 test.asm golink /entry _start /mix test.obj user32.dll, kernel32.dll
现在我的问题是:我可以使用 alink 而不是 golink 来构建它吗?如果是,我该怎么做?
非常感谢
【问题讨论】:
标签: windows assembly linker nasm