delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/09/08/20:16:39

From: Ludvig Larsson <ludvig AT club-internet DOT fr>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: problem with returning to mode 3 no problem
Date: Wed, 09 Sep 1998 02:04:37 +0100
Organization: FAAS/GoldHart
Lines: 26
Message-ID: <35F5C615.5477@club-internet.fr>
References: <6sl05n$e8h$1 AT supernews DOT com> <6sltiu$t82$1 AT hyperion DOT nitco DOT com> <6sm04k$aia$1 AT star DOT cs DOT vu DOT nl>
Reply-To: ludvig AT club-internet DOT fr
NNTP-Posting-Host: 195.36.147.72
Mime-Version: 1.0
NNTP-Posting-Date: 9 Sep 1998 00:06:52 GMT
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Hi!

Putting 3 as a graphic/text mode in ax is bad.
ax should contain the subfunction, like:
0x4f02 which tells int 0x10 to switch to
the mode you've put in bx !

like:

int setmode(short mode)
{
 int ret;
 __dpmi_regs reg;
 reg.x.ax=0x4f02;
 reg.x.bx=mode;
 __dpmi_int(0x10,&reg);
 ret=reg.x.ax;
 return(ret);
}

Ludvig Larsson

If you are interrested, I have wrote a smatt graphic
tutorial which is downloadable at:

http://www.geocities.com/TimesSquare/Arena/1645/index.html

- Raw text -


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