Notepad++ and TASM

Do you hate DOS editors or you need another keyboard layout for TASM (because it is an old DOS program)?
If you want to use TASM assembler with your lovely Notepad++ follow these steps:

1.) Place TASM to d:\asm\asm

2.) Open TASM (alab.exe or asm.bat) and correct the settings: Options > Directories write there d:\asm\asm\tasm.exe and so on...

Optional: to prevent the reload queston of Notepadd++ check off the following: Options > Editor > Autosave before assembling

And then: Options > Save config

3.) create the a bach file named as ASM-NPP.BAT and write into:

%2\ng
%2\r200fix
%2\alab %1

Optional: if you want to debug bat script, write below: PAUSE

4.) edit Notepad++\shortcuts.xml file and place the following line under UserDefinedCommands:

<Command name="TASM" Ctrl="yes" Alt="no" Shift="no" Key="120">d:\asm\asm\ASM-NPP.BAT $(FULL_CURRENT_PATH) d:\asm\asm</Command>

5.) Done. To run your *.asm script from notepad++ press Ctrl + F9. Tasm will open your file. Press Ctrl + F9 again to compile your script under TASM. Press Alt + X to exit Tasm and return to Notepad++.
Don't forget to save your script before Runing!

Important! If you use Total Commander too, do not create new text files with Ctrl + F4 Combo because TASM will alert: "Unexpected end of file encountered". If you want to create a new *.asm file, use Ctrl + N combo of Notepad++.

Megjegyzések

Népszerű bejegyzések ezen a blogon

La Vía Láctea y Andrómeda

Sophia a toronyban

Kifújom a füstöt 3.