From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?iso-8859-2?B?R+Fib3IgTOlu4XJ0?= Subject: Re: please help this newbie running asm programs!!! Date: Thu, 30 Jan 2003 17:06:08 +0100 Sender: linux-8086-owner@vger.kernel.org Message-ID: <20030130160608.GE12576@vega.digitel2002.hu> References: <200301301341.h0UDf5Z25323@preshak.recjai.ac.in> Reply-To: lgb@lgb.hu Mime-Version: 1.0 Content-Transfer-Encoding: QUOTED-PRINTABLE Return-path: Content-Disposition: inline In-Reply-To: <200301301341.h0UDf5Z25323@preshak.recjai.ac.in> List-Id: Content-Type: text/plain; charset="iso-8859-1" To: Seemanta Dutta Cc: linux-8086@vger.kernel.org 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 li= nux using as86, ld86 and elksemu. > i have written a simple program like >=20 > 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 = =2ECOM file. >=20 > ( i have omitted my directives here,,,but i have used .text, .code an= d of course _start: label ) >=20 > 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? :))) >=20 > am i missing something here?? i also studied the source code distro f= or > bin86 but could not find any example programs that can be assembled a= nd > 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.= =2E.if > possible also send me a copied and pasted program that can be assembl= ed > and linked to run under elesemu, along with the necessary steps to ma= ke > sure ld86 does not report any error messages during linking. i thank = u all > in advance for ur help... >=20 > 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 --=20 - G=E1bor (larta'H) - To unsubscribe from this list: send the line "unsubscribe linux-8086" i= n the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html