I downloaded the NASM 32 bit windows binaries, it included NASM.exe and ndisasm.exe, now how do I compile .asm files into .exe executables? Also, where are some good NASM tutorials? Thanks !
I downloaded the NASM 32 bit windows binaries, it included NASM.exe and ndisasm.exe, now how do I compile .asm files into .exe executables? Also, where are some good NASM tutorials? Thanks !
Do not make direct eye contact with me.
In nasm fodler
nasm.exe somefile.asm -o output.exe
There's all the information you need on building for various platforms within the documentation provided with NASM.
Failing that, there's up to date documentation and good information on the sourceforge site that you already know about.
Again...failing that there's a wealth of info on google
I tried Iamiens way with this code:
Compiled fine, but came up with an error on run. Compiled like this:Code:section .data msg db 'Yay, my first NASM program!!!',0x0A len equ $ - msg section .text global _start _start: mov eax, 4 mov ebx, 1 mov ecx, msg mov edx, len int 0x80 mov eax, 1 int 0x80
NASM test.asm -o test.exe
Anyone know the problem? And I'll look on Google some more...
Do not make direct eye contact with me.