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

  • Next message: Meindert Sprang: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"
    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


  • Next message: Meindert Sprang: "Re: Programs compiled with Intel's ASM86 won't run under DOS operating system"

    Relevant Pages

    • Assembler (AS9_new) Questions: phasing errors
      ... it with a different assembler that does not throw the same errors? ... vectrex programming. ... "To take my source code, run it through the assembler AND run the ... What program or function is the third command line referring to? ...
      (rec.games.vectrex)
    • Re: Video Mode 13h in windows XP ... impossible?
      ... there is NO problem using mode 13h under XP...if you write a DOS ... terminates so does the "DOS box" and you return to the Windows desktop ... A dedicated assembler (most of which are completely free and available ... NASM, this is _certainty_ that it's okay for you to do so...the people ...
      (alt.lang.asm)
    • Re: When to use Rosasm, when to use Masm?
      ... > One person's bloat is another man's essential features... ... coded they are...for example, with better macros and assembler features, ... source code" as anything but the roughest of rough measures because it's ... >> to pretend there's more code in RosAsm than there really is, ...
      (alt.lang.asm)
    • Re: HLA v1.93 is now available
      ... dialect of x86 assembly to clean up the source code. ... US christian dement, a MicroSoft supporter, and MASM supporter ... been shown several times in the form of the Lisa Assembler that Randy ... Randy already mentioned that at least 60% of HLA 2.00 already ...
      (alt.lang.asm)
    • Re: HLA History
      ... Maybe you are right, DOS is obsolete ... listing generated by the assembler. ... execution of code belonging to the operating system (in this ... the instruction after the int instruction. ...
      (alt.lang.asm)