Author Topic: Notepad++ Linking to NASM  (Read 6632 times)

Offline xXGh0stXx

  • New Member
  • Posts: 1
Notepad++ Linking to NASM
« on: September 13, 2014, 07:15:56 PM »
Notepad++ is a pretty decent text editor which allows users to run arbitrary compilation codes right into its built-in command line.
To do so, first download NPPExec plugin in the Notepad++ program.
Then, go to Plugins->NppExec->Execute
Creating a new script, paste the following to the dialog box
npp_save
cd "$(CURRENT_DIRECTORY)"
C:\NASM\nasm.exe -f elf32 $(FILE_NAME)
ld -m  i386pe -s -o $(NAME_PART).exe $(NAME_PART).o
$(NAME_PART).exe

**Please note that you need to replace your NASM installation path (in my case it was C:\NASM)**
Then save it as a script

Additionally, you can map a shortcut to it by going to Plugins->NPPExec->Advanced Options
Select the Associated Script (Under Menu Item) and click Add/Modify
After this go to Settings->Shortcut Mapper->Plugin Commands
Then scroll to your NASM script and add a shortcut

Thats it  8)

Offline encryptor256

  • Full Member
  • **
  • Posts: 250
  • Country: lv
  • Win64 .
    • On Youtube: encryptor256
Re: Notepad++ Linking to NASM
« Reply #1 on: September 14, 2014, 05:10:43 AM »
Superb, thanks for sharing this information.  :)
Encryptor256's Investigation \ Research Department.

Offline nasm32

  • Jr. Member
  • *
  • Posts: 25
Re: Notepad++ Linking to NASM
« Reply #2 on: September 15, 2014, 08:38:23 AM »
With the right setup it can become a very pleasant editor to use. I recommend the fresh programming font, it is a mutation of the FixedSys font and is designed for assembly programming. It's ugly, but it's also useful.