Assembler and the tool output

Questions on using RText should go here.

Moderator: robert

Assembler and the tool output

Postby mvalverder » Thu Nov 17, 2011 3:19 pm

I'm assembling using Tasm and I want the output goes to the Tool Ouput window of RText. How can I do that? Is it possible to double click the error text and RText go to the error line ?
mvalverder
 
Posts: 2
Joined: Thu Nov 17, 2011 2:41 pm

Re: Assembler and the tool output

Postby robert » Sat Nov 19, 2011 3:21 am

The following should work:

  • From the menu bar, select Tool -> New Tool...
  • Define a new tool to assemble the current file:
    • Name your tool "Tasm Current File" or something similar.
    • Provide the full path to the executable in the "Program" Field.
    • In the "Directory" field, hit Ctrl+Space, and select "${file_dir}" for the value. This makes the tool run in the current directory of the active file in RText.
    • Specify a keyboard shortcut for the tool in the Shortcut field.
    • Add command line arguments. One of these will likely be ${file_name} or one of the other values suggested via Ctrl+Space.
  • Use the keyboard shortcut you defined (or select the menu item) to assemble the current file.

That's all there is to it! Output should go to the Tool Output window.

Unfortunately, having the output scanned for links back into the document (line numbers, etc.) isn't yet supported. I'd like to add it though. There would likely be a new tab in the "New Tool" window along-side "Main" and "Environment", possibly something like "Output". This tab would allow you to define regular expressions to make into hyperlinks to jump to those locations in the document.

What is the format of error messages in TASM?
User avatar
robert
 
Posts: 797
Joined: Sat May 10, 2008 5:16 pm

Re: Assembler and the tool output

Postby mvalverder » Tue Nov 22, 2011 1:39 am

I did it that way and the result was: "<Tool name> completed (rc:2) - 0.207" on the title of the window, but the output window is empty!.
Normal errors in Tasm are of the form: **Error** <filename.ext>(<error line number>) <Error description>
mvalverder
 
Posts: 2
Joined: Thu Nov 17, 2011 2:41 pm

Re: Assembler and the tool output

Postby robert » Tue Nov 22, 2011 3:31 am

Hmm, I download TASM (hope it's not illegal to do so, the software is ancient!). I set it up to run C:\temp\tasm\patches\53_win\tasm32.exe (the installer doesn't appear to work on x64 versions of Windows).

And get this in the Tool Output window when I run it on a nonsense .asm file:

Turbo Assembler Version 5.3 Copyright (c) 1988, 2000 Inprise Corporation

Assembling file: test.asm
**Error** test.asm(1) Code or data emission to undeclared segment
**Fatal** test.asm(3) Unexpected end of file encountered
Error messages: 2
Warning messages: None
Passes: 1
User avatar
robert
 
Posts: 797
Joined: Sat May 10, 2008 5:16 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 1 guest

cron