Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 29 Dec 1998 16:53:50 -0600
From:      Nathan Ahlstrom <nrahlstr@winternet.com>
To:        cucu <cucu@cuneydi.com>, freebsd-questions@FreeBSD.ORG
Subject:   Re: DOS->FreeBSD port - int86x() Software Interrupt replacement Help.
Message-ID:  <19981229165350.B6397@winternet.com>
In-Reply-To: <NCBBLKJGGKLDJPCBEPGOGEHOCIAA.cucu@cuneydi.com>; from cucu on Tue, Dec 29, 1998 at 04:49:30PM -0600
References:  <NCBBLKJGGKLDJPCBEPGOGEHOCIAA.cucu@cuneydi.com>

next in thread | previous in thread | raw e-mail | index | archive | help

cucu <cucu@cuneydi.com> wrote:
> Let me try again,
> I would like convert the following piece of code from DOS to FreeBSD.
> 
> This piece of code is accessing the ROM BIOS by software interrupts.
> Basically in DOS world,int86x, copies register values to correspanding
> resgisters in the microprocessor.Saves the DS register,copies new values
> from segs structure into DS and ES.Generate software interrupt(0x15 in 
> this case) via INT instruction.Return from interrupt,copies registers to 
> out structure,and system carry flag.Restore DS back. (I hope I remember 
> evrything ...) 
>
> What is the right way doing this? Can someone point me to the right
> direction?

The following url is an explanation of the __asm__ directive found in
djgpp, but it is similar (same?) enough to do the same with gcc.

http://www.castle.net/~avly/djasm.html

Good Luck.

Nathan

-- 

Nathan Ahlstrom
nrahlstr@winternet.com
Run FreeBSD: http://www.freebsd.org/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19981229165350.B6397>