delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/03/06/20:47:04

From: David Rager <djrst14+NOSPAM4MEPLEASE AT pitt DOT edu>
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
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019