3

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?

nempoBu4
  • 6,521
  • 8
  • 35
  • 40
Ali
  • 31
  • 1
  • 1
  • 3
  • Does [this answer](http://stackoverflow.com/a/24009482/3512216) solve your problem? – rkhb Feb 10 '15 at 06:48
  • @rkhb: I think you are right as I can reproduce that exact behavior. – Seki Feb 10 '15 at 10:28
  • @ali: Once renamed, tasm points that `offeset ` is a typo, and your string needs to be terminated by a `$` :) – Seki Feb 10 '15 at 10:29

2 Answers2

4

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

Rick Smith
  • 9,031
  • 15
  • 81
  • 85
0
.model tiny
.stack
.data
Message db "hola mundo$"
.code

start:
    mov dx,OFFSET Message
    mov ax, SEG Message
    mov ds,ax
    mov ah,9
    int 21h

    mov ax,4C00h
    int 21h
END start
Bhargav Rao
  • 50,140
  • 28
  • 121
  • 140