Program generated by NASM on Windows doesn't display anything
I was following the official 'nasmdoc.pdf' to learn NASM, but I could not understand it fully. When I try to run my assembly code, it either gives errors or my EXE file does not run. I looked for tutorials but unfortunately, for almost all of them a Linux-based OS is used, and I want to avoid using Linux or WSL. This is my batch file, so I won't have to type nasm -f win64 and so on every time I want to run my code: @echo off rem if "%~1"=="" ( echo Usage: build ^<name-without-.asm^> exit /b 1 ) nasm -f win64 %1.asm -o %1.obj || exit /b 1 gcc %1.obj -o %1.exe || exit /b 1 echo Built %1.exe This
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.