www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/02/10/14:13:58

Date: Mon, 10 Feb 1997 11:01:19 -0800 (PST)
From: KaRNaGE <dlydiard AT linknet DOT kitsap DOT lib DOT wa DOT us>
To: djgpp AT delorie DOT com
Subject: Re: VBE 2.0 Pmode Bank Switching...
Message-ID: <Pine.SUN.3.95.970210105100.26202A-100000@linknet.kitsap.lib.wa.us>
MIME-Version: 1.0

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...

>Oy! You can't do that! :-)
>This function doesn't use the normal C calling convention, so you need
>to call it in a special way. You should put the window number (usually
>0, but it depends on the card) in %bx, the bank number in %dx, and then
>call it. This means you have to do it from asm...


- Raw text -


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