From owner-freebsd-current Wed Nov 20 23:27:16 1996 Return-Path: owner-current Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id XAA10577 for current-outgoing; Wed, 20 Nov 1996 23:27:16 -0800 (PST) Received: from jupiter.planet.co.at (jupiter.planet.co.at [193.170.249.3]) by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id XAA10572 for ; Wed, 20 Nov 1996 23:27:13 -0800 (PST) Received: from safeconcept.utimaco.co.at (safeconcept.utimaco.co.at [193.170.249.226]) by jupiter.planet.co.at (8.6.12/8.6.12) with ESMTP id IAA08434; Thu, 21 Nov 1996 08:26:57 +0100 Received: from christian (christian.utimaco.co.at [10.0.0.39]) by safeconcept.utimaco.co.at (8.6.12/8.6.12) with SMTP id IAA00494; Thu, 21 Nov 1996 08:27:11 +0100 Message-ID: <32940469.37FB@utimaco.co.at> Date: Thu, 21 Nov 1996 08:27:37 +0100 From: "DI. Christian Gusenbauer" Organization: Utimaco Safe-Concept X-Mailer: Mozilla 2.01 (WinNT; I) MIME-Version: 1.0 To: Bruce Evans CC: Christian.Gusenbauer@safeconcept.utimaco.co.at, joerg_wunsch@uriah.heep.sax.de, freebsd-current@freebsd.org Subject: Re: cdrom boot? References: <199611201930.GAA18450@godzilla.zeta.org.au> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-current@freebsd.org X-Loop: FreeBSD.org Precedence: bulk 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