| delorie.com/archives/browse.cgi | search |
| Xref: | news2.mv.net comp.os.msdos.djgpp:4022 |
| From: | watcom353 AT aol DOT com (Watcom353) |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | graphics |
| Date: | 19 May 1996 11:28:37 -0400 |
| Organization: | America Online, Inc. (1-800-827-6364) |
| Lines: | 13 |
| Sender: | root AT newsbf02 DOT news DOT aol DOT com |
| Message-ID: | <4nnen5$5k1@newsbf02.news.aol.com> |
| Reply-To: | watcom353 AT aol DOT com (Watcom353) |
| NNTP-Posting-Host: | newsbf02.mail.aol.com |
| To: | djgpp AT delorie DOT com |
| DJ-Gateway: | from newsgroup comp.os.msdos.djgpp |
I use int 10h to set the video mode like this: union REGS regs; regs.w.ax=mode; int386(0x10,®s,®s); That works fine. (I know this because when I use printf, the letters are really big) But I can't get a pixel on the screen. I've tried unsigned char *scr=0xa000; with many different amounts of 0s after the a. But I always get a GPF. How can I write to the screen. (Any suggestions for setting the mode without bios would also be appreciated)
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |