TASM Can't locate .asm file Error: **Fatal** Command line: Can't locate file: filename.asm

Ali picture Ali · Feb 10, 2015 · Viewed 9.9k times · Source

Issue: when I run @ the command prompt >tasm HelloWorld.asm and BTW I am using TAB in entering the file name HelloWorld.asm so there is no typo. I get this fatal command line error:

Turbo Assembler Version 4.1 Copyright (c) 1988, 1996 Borland International

Assembling file: HelloWorld.asm
Fatal Command line: Can't locate file: HelloWorld.asm
Error messages: 1
Warning messages: None
Passes: 1
Remaining memory: 452k

Here is my HelloWorld.asm:

.model small
.stack 100h

.data
;variablename type value or default initialization
dexter db "Hello World"

.code
start:

    mov ax, @data
    mov ds, ax

    mov ah, 09h
    mov dx, offeset dexter
    int 21h

    mov ah, 4ch
    int 21h

end start

Request your kind help to know why I am getting this error?

Answer

Drashti Turakhia picture Drashti Turakhia · Sep 1, 2015

I was facing a similar problem and found that keeping names less than 6-7 characters helps!