Thread: How do I setup tasm with borland?

  1. #1
    Registered User
    Join Date
    Jul 2005
    Posts
    6

    How do I setup tasm with borland?

    Hello,

    I am using borland c++ 1.01 (its old yes).

    I want to use some inline assembly with it and when I compile my code it says "Cannot find executable: tasm".

    So from this I went to look in my bin directory and of course tasm.exe wasn't in there.

    So I downloaded tasm (can't remember from where) and put the tasm.exe in my bin directory. There were a lot of .TAB files etc... and I don't know what they are for.

    Anyway now when I compile I get the following error-

    "Tasm : file name too short (possibly garbled option flag): ;
    tasm : list file open error on /e/ml".

    The file name isn't too short (its 7 chars long). And my inline assembly code looks like this-

    Code:
    void fillScreen(int color) 
    {
         asm {
              les di, video_buffer
              mov al,BYTE PTR color
              mov ah,al
              mov cx,320*200/2
              rep stosw
        }
    }
    As far as I can tell that code should be completely compatible with the borland compiler.

    My question is- have I set tasm up correctly by just copying the tasm.exe into the bin directory? If I have set it up correctly then what is the reason for getting this error?

    I have searched google extensively and been unable to find something that could help me with this.

    Thanks very much.
    Last edited by lox; 07-11-2005 at 05:45 PM.

  2. #2
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    That's because it's so old it's senile, and can't remember where it put it.


    Quzah.
    Hope is the first step on the road to disappointment.

  3. #3
    Registered User
    Join Date
    Jul 2005
    Posts
    6
    Quote Originally Posted by quzah
    That's because it's so old it's senile, and can't remember where it put it.


    Quzah.
    Thanks for the heads up Quzah

    But seriously do you know what could be going wrong here? I have been wracking my brains for 2 days about this now and just can't seem to figure it out.

  4. #4
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    You could try the Borland's Museum and "upgrade" to a "newer" version.


    Quzah.
    Hope is the first step on the road to disappointment.

  5. #5
    Registered User
    Join Date
    Jul 2005
    Posts
    6
    The borland museum is where i got version i am using and I have the most up to date "old" version that there is.
    Read- borland C++ 1.01 is newer than borland C 2.0.

    I need this old version for the old code that I am running so I can't change the compiler.
    However I do need to get the asm working with it.

    Thanks again.

  6. #6
    Registered User
    Join Date
    Oct 2004
    Posts
    151
    Quote Originally Posted by lox
    So I downloaded tasm (can't remember from where) and put the tasm.exe in my bin directory. There were a lot of .TAB files etc... and I don't know what they are for.
    You have had the misfortune of being owned by an ambiguous acronym. If it's any consolation, you aren't the only one to confuse the two.

  7. #7
    ATH0 quzah's Avatar
    Join Date
    Oct 2001
    Posts
    14,826
    Ah, and here I thought you were trying to compile C with a C compiler. Silly me. At any rate, did you try reading the documentation?
    IMPORTANT NOTES

    - If you use inline assembler in C++, TASM 1.0 may not be able
    to assemble the generated code. If you run into this problem,
    you will need to update to version 2.0 of TASM.

    Quzah.
    Hope is the first step on the road to disappointment.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 2
    Last Post: 10-03-2006, 04:48 PM
  2. THE END - Borland C++ Builder, Delphi, J Builder?
    By Davros in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 02-28-2006, 11:23 PM
  3. Borland and cEdit
    By Staz in forum C++ Programming
    Replies: 0
    Last Post: 08-17-2002, 07:44 AM
  4. Borland C++ v.5 & Borland Turbo C++ 4.5
    By Unregistered in forum C Programming
    Replies: 0
    Last Post: 07-21-2002, 03:30 AM
  5. Problems with linking/compiling (Borland TC C++)
    By Unregistered in forum C++ Programming
    Replies: 0
    Last Post: 07-13-2002, 03:41 PM