From owner-freebsd-questions Sat Jun 17 3:58: 2 2000 Delivered-To: freebsd-questions@freebsd.org Received: from inetminas.estaminas.com.br (inetminas.estaminas.com.br [200.251.191.247]) by hub.freebsd.org (Postfix) with ESMTP id C4CD037B82C; Sat, 17 Jun 2000 03:57:48 -0700 (PDT) (envelope-from nwerneck@net.em.com.br) Received: from dx4-100 (nas8-52.estaminas.com.br [200.243.209.180]) by inetminas.estaminas.com.br (8.9.1a/8.9.1) with ESMTP id HAA02504; Sat, 17 Jun 2000 07:57:38 -0300 (GMT) Message-Id: <200006171057.HAA02504@inetminas.estaminas.com.br> From: "Nicolau Werneck" To: freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Date: Sat, 17 Jun 2000 07:57:34 -0300 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: BIOS interruption calls in C under freebsd for graphics Reply-To: Nicolau Werneck X-mailer: Pegasus Mail for Win32 (v3.12b) Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG 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? ------- End of forwarded message ------- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message