Message-ID: <000a01c00d6f$6d9e5d80$602424d5@pablolaptop> From: "Pablo Martikian" To: 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 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0007_01C00D80.303C3140" 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
Hello,
 
Here is my problem. I=B4m developing a = boot loader.=20 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=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].
Is there anything I can do to fix=20 this?
If I fix this problem, everything else = is=20 OK.
Thanks
Pablo
------=_NextPart_000_0007_01C00D80.303C3140--