Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!rutgers!mit-eddie!genrad!decvax!tektronix!uw-beaver!tikal!sigma!uw-nsr!uw-warp!tom From: tom@uw-warp.UUCP Newsgroups: comp.sys.ibm.pc Subject: Re: Silly EGA question, but... Message-ID: <651@uw-warp.UUCP> Date: Mon, 26-Jan-87 17:33:53 EST Article-I.D.: uw-warp.651 Posted: Mon Jan 26 17:33:53 1987 Date-Received: Wed, 28-Jan-87 07:31:51 EST References: <4602@watmath.UUCP> Organization: The Warp, Seattle, WA Lines: 22 Summary: I used INT 10h to access the EGA In article <4602@watmath.UUCP>, daemon@watmath.UUCP writes: > Using C or assembler or generic language other than BASIC > I cant find in my limited documentation just HOW EXACTLY does one > write/make graphics/colours on an AT EGA console. (dos3.x) > BASIC has its keywords for doing graphics things, but how do generic > programs do things the hard way? > > - Ken Dykes > Software Development Group, U. of Waterloo > Waterloo, Ontario, Canada. N2L 3G1 (+1 519) 885 1211 > uucp: {ihnp4,decvax,allegra,utzoo}!watmath!watbun!kgdykes > bitnet: kgdykes@water > kgdykes%watbun@waterloo.csnet > kgdykes%watbun%waterloo.csnet@csnet-relay.arpa I used the video interrupt, INT 10h, to write pixels on the EGA from assembly language. The same thing could also be done from C. That was a lot easier than trying to understand how to access the hardware directly. INT 10h is documented in the DOS Technical Reference Manual. You also have to use INT 10h to get the card into the correct mode. I think you get some documentation with it that tells about the modes, otherwise you'll have to resort to trial and error.-- Tom May. uw-beaver!uw-nsr!uw-warp!tom