Programs compiled with Intel's ASM86 won't run under DOS operating system
From: PISZCZ, Bogdan (b.piszcz_at_t-online.de)
Date: 03/30/04
- Previous message: D. Zimmerman: "Re: Mixing 12 nS memory with 15 nS memory"
- Next in thread: Meindert Sprang: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"
- Reply: Meindert Sprang: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"
- Reply: Hans-Bernhard Broeker: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"
- Reply: Ignacio G.T.: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Mar 2004 07:46:27 +0200
Hi,
I have written a simple assembler source code. I let it pass through
Intel's ASM86 assembler, linker, locator and oh86 (without any command
line options respectively) - without any error massages output. The file
resulting of passing the locator doesn't run under DOS. Neither does the
.hex file (made of the latter with the oh86). I also tried renaming the
.hex file to an .exe file - the result was (as expected) the same, so that
I don't know, how to run my programs under DOS or how to make executables,
which I could launch on my PC under MS DOS operating system. Can anyone
tell me how can I do it? Or did I possibly make any mistake(s), omitting
any command line options or in the source code itself?
I'm a newbie and I would just prefer learning assembler with Intel's ASM86
because I have a voluminose, very good elaborated and very precise Intel's
original educational documentation (programming and hardware manuals),
with several complex programming examples. Unfortunately, other assemblers
- for example A86 by Eric Isaacson or Borlands TASM - are not compatible
to Intel's ASM86's original syntax.
Some more questions:
1. When I invoke any executable .com or .exe file under DOS, at which
address in the memory is it loaded? Can this memory address be in anyway
affected by the source code?
2. What's the difference between an ordinary binary file and a hexadecimal
one?
Thanks.
And the following is the mentioned before source code:
name hello
assume cs:cod_seg, ds:dat_seg, ss:st_seg
dat_seg segment
message db 'Hello',13,10,'$'
dat_seg ends
st_seg segment
DW 10 dup(?)
stack_top label word
st_seg ends
cod_seg segment
start: mov ax,dat_seg
mov ds,ax
mov ax,st_seg
mov ss,ax
mov sp, offset stack_top
mov ah,9h
mov dx,offset message
int 21h
mov ah,4ch
int 21h
cod_seg ends
end cs:start, ds:dat_seg, ss:st_seg
- Previous message: D. Zimmerman: "Re: Mixing 12 nS memory with 15 nS memory"
- Next in thread: Meindert Sprang: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"
- Reply: Meindert Sprang: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"
- Reply: Hans-Bernhard Broeker: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"
- Reply: Ignacio G.T.: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|