From owner-freebsd-hackers Sat Jun 17 6:15:57 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fellspt.charm.net (fellspt.charm.net [199.0.70.29]) by hub.freebsd.org (Postfix) with ESMTP id DB17C37C45D; Sat, 17 Jun 2000 06:15:43 -0700 (PDT) (envelope-from dutch@charm.net) Received: from coretel-185-252.charm.net (coretel-185-252.charm.net [162.33.185.252]) by fellspt.charm.net (8.9.3/8.9.3) with ESMTP id JAA03358; Sat, 17 Jun 2000 09:15:28 -0400 (EDT) Date: Sat, 17 Jun 2000 13:15:32 +0100 (GMT Daylight Time) From: Dutch Collins To: Nicolau Werneck Cc: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG Subject: Re: BIOS interruption calls in C under freebsd for graphics In-Reply-To: <200006171057.HAA02504@inetminas.estaminas.com.br> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sat, 17 Jun 2000, Nicolau Werneck wrote: > Date: Sat, 17 Jun 2000 07:57:34 -0300 > From: Nicolau Werneck > To: freebsd-questions@FreeBSD.ORG, freebsd-hackers@FreeBSD.ORG > Subject: BIOS interruption calls in C under freebsd for graphics > > 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 > There are better ways to get pixels on the screen when using FreeBSD. I haven' tried but these tools are worth looking at. 1) Tcl (Tool Command Language) is easy to learn and you can create a useful program in minutes! http://dev.scriptics.com/ 2) GTK v1.2 Tutorial. http://www.gtk.org/tutorial/gtk_tut.html 3) The Qt-product series. http://www.trolltech.com/products/qt/ I may missed the point but I disregard the bios on pc machines once booted. -d -- To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message