How to Run NASM on Windows
Download codeblocks from Code Blocks Downloads., Download nasm from netwide assembler. , Install the codeblocks by running the setup.exe file you downloaded. , Extract and install nasm into the codeblocks folder, e.g., C:\Program...
Step-by-Step Guide
-
Step 1: Download codeblocks from Code Blocks Downloads.
This is a Win32 console program that writes "Hello, World" on one line and; then exits.
It needs to be linked with a C library. ,, Enter this command: nasm
-f win32 helloworld.asm.
It should produce a helloworld.obj file in the same directory. , It should build a file named a.exe. , The words "Hello, World" should display on the screen. -
Step 2: Download nasm from netwide assembler.
-
Step 3: Install the codeblocks by running the setup.exe file you downloaded.
-
Step 4: Extract and install nasm into the codeblocks folder
-
Step 5: C:\Program Files\CodeBlocks\MinGW\bin.
-
Step 6: Check whether the installation is working or not by the source code below for a test run.
-
Step 7: Save the source code above as helloworld.asm in the location: C:\Program Files\CodeBlocks\MinGW\bin.
-
Step 8: Run nasmpath.bat.
-
Step 9: Execute the object file by typing: gcc helloworld.obj.
-
Step 10: Type a.exe to run the test program and get your result.
Detailed Guide
This is a Win32 console program that writes "Hello, World" on one line and; then exits.
It needs to be linked with a C library. ,, Enter this command: nasm
-f win32 helloworld.asm.
It should produce a helloworld.obj file in the same directory. , It should build a file named a.exe. , The words "Hello, World" should display on the screen.
About the Author
Eugene Martinez
Eugene Martinez has dedicated 1 years to mastering non profit. As a content creator, Eugene focuses on providing actionable tips and step-by-step guides.
Rate This Guide
How helpful was this guide? Click to rate: