public inbox for linux-8086@vger.kernel.org
 help / color / mirror / Atom feed
From: "Gábor Lénárt" <lgb@lgb.hu>
To: Seemanta Dutta <seemanta@recjai.ac.in>
Cc: linux-8086@vger.kernel.org
Subject: Re: please help this newbie running asm programs!!!
Date: Thu, 30 Jan 2003 17:06:08 +0100	[thread overview]
Message-ID: <20030130160608.GE12576@vega.digitel2002.hu> (raw)
In-Reply-To: <200301301341.h0UDf5Z25323@preshak.recjai.ac.in>

Hi,

I don't understand your point. It's quite useless what you're trying to do.
Why not run your DOS based program with DOSEMU? And what's the relation
between DOS programs and ELKS? I can't get your point sorry ...

On Thu, Jan 30, 2003 at 07:11:05PM +0530, Seemanta Dutta wrote:
> greetings all linux gurus...
> i am a newbie trying to port and run dos based 8086 programs under linux using as86, ld86 and elksemu.
> i have written a simple program like
> 
> mov ah,09
> lea dx,hello
> int 21h

OK.
Try it with NASM, beleive me, it's much simplier for you :)

->

[BITS 16]
org 100h
mov ah,9
mov dx,hello
int 21h
int 20h
hello DB 'Hello',13,10,'$'

This will work when assembled with NASM, and run under DOS as a simple .COM
file.

> 
> ( i have omitted my directives here,,,but i have used .text, .code and of course _start: label )
> 
> so far i have been able to assemble my program with as86 but i am not able
> to link it using ld86. the linker says : no start symbol

Yes, linker expect a starting symbol, it's quite normal otherwise which opcode
will be the first to execute? :)))

> 
> am i missing something here?? i also studied the source code distro for
> bin86 but could not find any example programs that can be assembled and
> linked using these tools...i am stuck badly...in case i am mising
> something here please tell me asap...i shall ever be grateful to you...if
> possible also send me a copied and pasted program that can be assembled
> and linked to run under elesemu, along with the necessary steps to make
> sure ld86 does not report any error messages during linking. i thank u all
> in advance for ur help...
> 
> urs sincerely,
> seemanta ;)
> -
> To unsubscribe from this list: send the line "unsubscribe linux-8086" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html

-- 
- Gábor (larta'H)
-
To unsubscribe from this list: send the line "unsubscribe linux-8086" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

  reply	other threads:[~2003-01-30 16:06 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-01-30 13:41 please help this newbie running asm programs!!! Seemanta Dutta
2003-01-30 16:06 ` Gábor Lénárt [this message]
2003-02-05 23:13 ` writing programs for elks Alfonso
     [not found]   ` <1044556130.1597.23.camel@Castle.goembel>
2003-02-07 12:22     ` writing programs for ELKS Alfonso
2003-02-07 21:05       ` Dan Olson
2003-02-05 23:16 ` please help this newbie running asm programs!!! Alfonso
2003-02-11  5:52   ` Phil Goembel
2003-02-12 11:15     ` _main and startup code Alfonso

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20030130160608.GE12576@vega.digitel2002.hu \
    --to=lgb@lgb.hu \
    --cc=linux-8086@vger.kernel.org \
    --cc=seemanta@recjai.ac.in \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox