From owner-freebsd-hackers Sat Jun 17 19:51:55 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from john.baldwin.cx (john.geekhouse.net [64.81.6.51]) by hub.freebsd.org (Postfix) with ESMTP id 9756A37B915; Sat, 17 Jun 2000 19:51:39 -0700 (PDT) (envelope-from john@baldwin.cx) Received: (from john@localhost) by john.baldwin.cx (8.9.3/8.9.3) id TAA04354; Sat, 17 Jun 2000 19:51:31 -0700 (PDT) (envelope-from john) Message-Id: <200006180251.TAA04354@john.baldwin.cx> X-Mailer: XFMail 1.4.0 on FreeBSD X-Priority: 3 (Normal) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 8bit MIME-Version: 1.0 In-Reply-To: <200006171057.HAA02504@inetminas.estaminas.com.br> Date: Sat, 17 Jun 2000 19:51:31 -0700 (PDT) Organization: BSD, Inc. From: John Baldwin To: Nicolau Werneck Subject: RE: BIOS interruption calls in C under freebsd for graphics Cc: freebsd-hackers@FreeBSD.ORG, freebsd-questions@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On 17-Jun-00 Nicolau Werneck wrote: > hi! > > I'm trying to make a little graphical program, and I'm thinking in > use the (IBM 80486) BIOS interruptions to set the video mode and > put pixels on the screen (I'm looking for better solutions.. anyone?). > I used to do this under DOS But I observed that FreeBSD > (surprisingly! :) ) doesn't come with a dos.h library! I found out this > bios.h file, with a structure of registers, and a > function to call interruptions, but I couldn't figure out how it works... > (what the hell is this first argument?). > I know that I can draw on the screen writting directely to the > 0xa0000 adress, and since I don't know how to do that in C (anyone > again? :) ), The solution I found was the interruptions... But to set > the video mode, can I use the vidcontrol program? How??? Even for > high resolutions like 1024x760? Look into libvgl. You don't want to use the BIOS as it will be intolerably slow. I also don't think that we even allow the userland to access the BIOS anyways. 'man vgl' should give you a useful manpage to read. -- John Baldwin -- http://www.FreeBSD.org/~jhb/ PGP Key: http://www.cslab.vt.edu/~jobaldwi/pgpkey.asc "Power Users Use the Power to Serve!" - http://www.FreeBSD.org/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message