Using the TextPad 4.5 Editor

 

The following instructions assume you are using TextPad Version 4.5. You can download an evaluation copy from www.textpad.com

Step 1: Build 16-bit MASM

Following is a sample screen snapshot. (Optionally, you can check the Capture output option to redirect the assembler's output messages to a TextPad editor window.)

The Regular expression to match output entry is explained fairly well in the TextPad help system. It makes it possible to click on an Assembler error message and have TextPad jump to the appropriate line in your source program.

Testing:

Step 2: Run ASM Prog

  $BaseName 

Testing:

With your ASM program in the current TextPad window, select Run 16-bit MASM from the Tools menu. You should see your program's output.

The two commands you created will always act on the program in the currently selected window. Normally, you execute the BUILD 16-bit MASM command, and then if no errors result, you execute the Run 16-bit MASM command.

Step 3: Debug 16-bit MASM

  C:\Masm613\runCV.bat $BaseName 

(Modify the path if you have installed MASM in a different directory)

You're done!

If you need more information, TextPad has extensive online help that shows how to edit the Tools menu. If you're making these modifications for multiple users (as in a laboratory), you can use RegEdit to save the registry subtree to a REG file. Look for the following entry:

HKEY_CURRENT_USER > SOFTWARE > Helios > TextPad 4 > Tools