From: David Rager Newsgroups: comp.os.msdos.djgpp Subject: Re: Accessing the ROM char set Date: Fri, 06 Mar 1998 20:36:05 -0500 Organization: University of Pittsburgh Lines: 29 Message-ID: <3500A484.CF5CBD49@pitt.edu> References: <34F92AA0 DOT 14EFEA1F AT pitt DOT edu> NNTP-Posting-Host: jbddup-b-6.rmt.net.pitt.edu Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I found my problem. Thanx for all your help. [--snip--] > ****** This is what I need to do in DJGPP: > > void blitChar (int xc, int yc, char c, int color, int transparentFlag) { > > int offset, x, y; > unsigned char bitmask; > unsigned char charoffset; // <-- this is only 8 bits. > unsigned char workChar; [--snip--] > unsigned short romCharSet_ds = __dpmi_segment_to_descriptor (0xf000); [--snip--] > charoffset = 0xfa6e + c * CHAR_HEIGHT; > This result --^ was getting truncated to 8 bits. Duhh! But of course it's these stupidlittle problems that cause the most trouble. :) Thanx for all your help. Dave.