I'm trying to learn assembly and want to download NASM I use Windows 10,is it possible to install NASM without using DosBox or VM ?? because I saw someone using CodeBlocks with NASM to code in assembly..
Asked
Active
Viewed 3.9k times
18
-
1Yes. Look [here](https://www.nasm.us/) – rkhb Sep 14 '19 at 17:57
2 Answers
26
NASM has installers for Windows available from its website under the "Downloads" tab
The latest stable Win64 build (as of 15Sep2019) is available here: https://www.nasm.us/pub/nasm/releasebuilds/2.14.02/win64/

nickelpro
- 2,537
- 1
- 19
- 25
-
6Note :- To add nasm in command prompt just add path of nasm folder in which nasm.exe is located to environment variable PATH and save it then you will be able to access nasm from anywhere in cmd – Vikas Kandari Mar 15 '21 at 04:58
8
An easy alternative for Windows 10 would be installing NASM with the winget Package Manager.
Run the Command Prompt as an Administrator and then:
Install NASM
winget install nasm -i
Add it to the Environment Variables
C:\Program Files\NASM
Or alternatively with setx:
Be cautious as it may overwrite your current variables (It didn't for me)
setx Path "%Path%;C:\Program Files\NASM\"
Restart the Command Prompt and verify
nasm --version
NASM version 2.15.05 compiled on Aug 28 2020

rbento
- 9,919
- 3
- 61
- 61
-
3Warning that the "setx Path" is bad, you will trash your path variable if it's > 1024 characters as it will truncate it. – Stinomus Jan 26 '22 at 00:11
-
Dude put a warning before `setx Path "%Path%;C:\Program Files\NASM\"`. It will remove all other env variables – Aniket Prajapati Oct 26 '22 at 22:20