www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/10/22/00:30:54

From: is05562 AT salleURL DOT edu
Newsgroups: comp.os.msdos.djgpp
Subject: problems with cprintf and 50 lines mode...
Date: 19 Oct 1998 07:54:11 GMT
Organization: /dev/null
Lines: 41
Distribution: inet
Message-ID: <70er73$o3p@lilith.uab.es>
NNTP-Posting-Host: cygnus.salleurl.edu
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

hi...

I'm using djgpp cprintf function, and I have a SAD problem with 50-lines
mode... I'm used to work in 50 lines mode under MS-DOS, so when I use
cprintf from inside my djgpp programs, I'm trying also to use 50 lines mode.
I'm setting it this way: (with the apropiate djgpp functions, not with
this asm code)

   mov ax,0003h
   int 10h

   mov ax,1112h
   xor bx,bx
   int 10h

this sets 80x50 text mode, and cprintf works flawlessly with it... BUT
ONLY IF THE .EXE I PRODUCE STARTS FROM DOS IN 50 LINES MODE! :((( If
I start the .EXE from DOS in 25 lines mode, then strange scroll appears at
the bottom of the screen, like if cprintf thought that there were only 25
lines (when I really inserted the above code, and the screen appears to be
in 50 lines mode: 8x8 chars).

I don't know what to do, as I'd like to "cheat" cprintf when I boot from dos
in 25 lines mode, making it think that there were 50 lines. I've tried to
change into 50 lines mode RIGHT when my program boots, but it seems that
cprintf takes in acount the real lines at DOS, not the ones I set right
in the firsts lines of my C code...

What should I do ? Any hint ? 

thanks in advance...

                              

                                                Isaac Santaolalla
_______________________________________________________________________________
   _         _
Jrona que jrona mas permata jier mas...
Meta! Mas peras quie cholimpiadas mas...
Tora cero naparon quieto ya urtimas! (PUMBA! :)
_______________________________________________________________________________

- Raw text -


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