Date: Thu, 21 Nov 1996 08:27:37 +0100 From: "DI. Christian Gusenbauer" <Christian.Gusenbauer@utimaco.co.at> To: Bruce Evans <bde@zeta.org.au> Cc: Christian.Gusenbauer@safeconcept.utimaco.co.at, joerg_wunsch@uriah.heep.sax.de, freebsd-current@freebsd.org Subject: Re: cdrom boot? Message-ID: <32940469.37FB@utimaco.co.at> References: <199611201930.GAA18450@godzilla.zeta.org.au>
next in thread | previous in thread | raw e-mail | index | archive | help
Bruce Evans wrote:
>
> >I tried to port fbsdboot to bcc a year ago. Unfortunately, bcc doesn't
> >understand inline assembler statements (AFAIR)
>
> Yes it does:
>
> int main(argc, argv)
> int achar **argv;
> {
> int foo;
> ; /* end declarations to get frame allocated */
> #asm
OK, that's the magic keyword.
> ; Offsets are relative to sp so they are only easy to use on x86's
> ; for x >= 3.
> mov ax,_main.argc[sp]
> mov bx,_main.argv[sp]
> mov cx,_main.foo[sp]
> mov dx,1
> ...
> #endasm
> }
>
> >and I'm not very familar
> >with the unix assembler.
>
> It doesn't use "the" unix assembler.
I see.
>
> >Does bcc support 32bit pointers/addresses (like
> >the 'far' masm statement)?
>
> No. It only supports pure tiny and small models.
So I have to generate the 32bit asm 'by hand' using 'db' statements.
How about libraries? Is it possible to link DOS libs and/or obj files?
Christian.
--
Christian Gusenbauer
Christian.Gusenbauer@utimaco.co.at
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?32940469.37FB>
