www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1995/08/09/15:09:19

Xref: news-dnh.mv.net comp.os.msdos.djgpp:1430
Path: news-dnh.mv.net!mv!news.sprintlink.net!news.bluesky.net!news.mathworks.com!zombie.ncsc.mil!news.duke.edu!godot.cc.duq.edu!nntp.club.cc.cmu.edu!cantaloupe.srv.cs.cmu.edu!das-news2.harvard.edu!oitnews.harvard.edu!newsfeed.rice.edu!rice!news!sandmann
From: Charles Sandmann <sandmann AT clio DOT rice DOT edu>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: V2 and PDCurses again...
Date: Tue, 08 Aug 1995 07:34:14 CDT
Organization: Rice University, Houston, Texas
Lines: 21
References: <DCzDJI DOT 66n AT cyf-kr DOT edu DOT pl>
Reply-To: sandmann AT clio DOT rice DOT edu
Nntp-Posting-Host: clio.rice.edu
To: djgpp AT sun DOT soe DOT clarkson DOT edu
Dj-Gateway: from newsgroup comp.os.msdos.djgpp

>   #  ifdef GO32
> ! /*                    dosmemput (ch, COLS * sizeof(unsigned short),
>                                 (void *)_FAR_POINTER(_cursvar.video_seg,
>                                 _cursvar.video_ofs + (i * COLS * sizeof(unsigned short))));
> + */
> +                       movedata (_go32_my_ds(), ch, _go32_conventional_mem_selector(),
> +                               (_cursvar.video_seg << 4) + _cursvar.video_ofs + (i * COLS * sizeof(unsigned short)),
> +                               COLS * sizeof(unsigned short));

> Maybe there is (better | simpler | faster) way to change this code?

What you have done looks fine, but my guess is the original code would work
fine also if the _FAR_POINTER (macro? function?) was fixed to not use the
0xe00xxxxx type addressing, since it's not even necessary with dosmemput.
I think this change would be simplier, but what you coded is 
really equivalent.  

One of these changes needs to be sent to the maintainers - since that would
allow it to work under V1.x and V2.0.

Good work!

- Raw text -


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