www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/13/09:09:16

From: brennan AT news DOT rt66 DOT com (Brennan "The Rev. Bas" Underwood)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: VBE 2.0 Pmode Bank Switching...
Date: 13 Feb 1997 02:48:43 -0700
Organization: Acid Brain
Lines: 27
Distribution: world
Message-ID: <5duo1r$5vr$1@mack.rt66.com>
References: <Pine DOT SUN DOT 3 DOT 95 DOT 970210105100 DOT 26202A-100000 AT linknet DOT kitsap DOT lib DOT wa DOT us>
NNTP-Posting-Host: mack.rt66.com
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

In article <Pine DOT SUN DOT 3 DOT 95 DOT 970210105100 DOT 26202A-100000 AT linknet DOT kitsap DOT lib DOT wa DOT us>,
KaRNaGE  <dlydiard AT linknet DOT kitsap DOT lib DOT wa DOT us> wrote:
>
>hmm i'm still learning at&t syntax...but i tried:
>
>asm("mov 0, %bx");
>asm("mov bank, %dx");  //bank == bank number
>asm("call *%0"
>     :
>     : "S" (pm_bank)   //the pm_bank() function i posted before
>);
>and still it doesn't work...BTW thankz for the real mode bank switching
>info....i took out the multiply by 16..and now it works with UNIVBE which
>i prefer....but the Pmode bank switching it still making me rip my hair
>out =)....what i really need it source code that is identical to Sandman's
>code (VBE.ZIP) but for VBE 2.0 Bank Switching... (or a new video card =)
>)...but thankz for your help...
>

There's a really good example of how to do this in the Allegro source.


Brennan
-- 
 brennan AT rt66 DOT com |  static char msg[]="Bill Gates is the Anti-christ.";
Riomhchlaraitheoir|  Add this message to every program you write! I do!
   Rasterfarian   |  <http://brennan.home.ml.org>                          -O

- Raw text -


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