Mail Archives: pgcc/2000/08/23/22:14:39
Message-ID: | <000a01c00d6f$6d9e5d80$602424d5@pablolaptop>
|
From: | "Pablo Martikian" <pablo AT martikian DOT com DOT ar>
|
To: | <pgcc AT delorie DOT com>
|
Subject: | =?iso-8859-1?Q?I=B4M_NOT_ON_THE_MAILING_LIST.?=
|
Date: | Thu, 24 Aug 2000 04:02:58 +0200
|
MIME-Version: | 1.0
|
X-Priority: | 3
|
X-MSMail-Priority: | Normal
|
X-Mailer: | Microsoft Outlook Express 5.50.4133.2400
|
X-MimeOLE: | Produced By Microsoft MimeOLE V5.50.4133.2400
|
Reply-To: | pgcc AT delorie DOT com
|
This is a multi-part message in MIME format.
------=_NextPart_000_0007_01C00D80.303C3140
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hello,
Here is my problem. I=B4m developing a boot loader. Intel Platform =
obviously.
The problem is that I need 16bit code.
The PGCC is perfect for this using "BIT 16".
But there is only one little problem. When you program functions in your =
C code with parameters, the parameters are referred starting at [EBP + =
8] because de compiler assumes 8 bytes in the stack. That is true except =
in real mode 16bit, where the parameters should start at [EBP + 6].
Is there anything I can do to fix this?
If I fix this problem, everything else is OK.
Thanks
Pablo
------=_NextPart_000_0007_01C00D80.303C3140
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 5.50.4134.600" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hello,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Here is my problem. I=B4m developing a =
boot loader.=20
Intel Platform obviously.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The problem is that I need 16bit =
code.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>The PGCC is perfect for this using "BIT =
16".</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>But there is only one little problem. =
When you=20
program functions in your C code with parameters, the parameters are =
referred=20
starting at [EBP + 8] because de compiler assumes 8 bytes in the stack. =
That is=20
true except in real mode 16bit, where the parameters should start at =
[EBP +=20
6].</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Is there anything I can do to fix=20
this?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>If I fix this problem, everything else =
is=20
OK.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Thanks</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Pablo</FONT></DIV></BODY></HTML>
------=_NextPart_000_0007_01C00D80.303C3140--
- Raw text -