X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Wed, 02 Nov 2005 08:48:33 -0500 From: Diego Cueva Subject: RE: RE: Why the call instruction points 2 bytes before to the real start sub-routine ? In-reply-to: <3srjtdFps5r6U3@news.dfncis.de> To: djgpp AT delorie DOT com Message-id: <000201c5dfb4$1e997d10$2432a8c0@dcueva> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 X-Mailer: Microsoft Outlook, Build 10.0.4024 Content-type: text/plain; charset=us-ascii Importance: Normal X-Priority: 3 (Normal) X-MSMail-priority: Normal Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id jA2Dohle003025 Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk Thanks Hans-Bernhard: .com file not are my final objective. My Objective is creating a small operating system to educational purposes, and I need compile C programs with GCC that can execute in booting time. 32 bits can be an option, if I can obtain documentation about that ("Hello world with LGTD"). To this moment I have a IPL program with a group small routines in assemble compiled/linked with "as/ld". This is working fine. But link that with C compiled code is the WALL to climb now. I am a experimented C programmer and Operating System teacher. Thanks for your help. Att. Diego Cueva. -----Original Message----- From: Hans-Bernhard Broeker [mailto:broeker AT physik DOT rwth-aachen DOT de] Sent: Wednesday, November 02, 2005 05:49 To: djgpp AT delorie DOT com Subject: Re: Why the call instruction points 2 bytes before to the real start sub-routine ? Diego Cueva wrote: > This dis-assembled code is correct, but when I run the program does not > work fine. Of course it doesn't --- you're using entirely the wrong tool for the job. DOS .com files aren't 32-bit code, and no, there's no simple machine instruction to turn the machine into 32-bit mode, either. If DOS-style .com files are what you want to create, DJGPP is not the tool you need. > PS. I do not know how I can do post via newsgroup. ... You're managing just fine via the gateway between the newsgroup and the mailing list. -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain. TODO1 SERVICES, INC. -TODO1- es la propietaria de la información contenida en este mensaje y sus anexos, que puede tener carácter confidencial y ha sido enviada para uso exclusivo del destinatario intencional. Si usted ha recibido este mensaje por error, por favor informe de ello al remitente a la mayor brevedad y elimine este mensaje y sus anexos. Está prohibido su uso, distribución, divulgación o almacenamiento, salvo autorización escrita de TODO1. Todo mensaje enviado y/o recibido por TODO1 es monitoreado por motivos operativos y actuando de acuerdo con prácticas de negocio y de seguridad legítimas. TODO1 SERVICES, INC. -TODO1- is the proprietary of the information contained herein and its attachments, that may have confidential character and has been sent to the intended recipient only. If you are not the intended recipient, please contact the sender immediately by replying to this e-mail and delete the message and its attachments. The use, forward, disclosure, record or retention of this message for any purpose whatsoever, is strictly prohibited, unless prior written authorization from TODO1. E-mails to and from TODO1 are monitored for operational reasons and in accordance with lawful business and security practices.