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.