Date: Mon, 10 Feb 1997 11:01:19 -0800 (PST) From: KaRNaGE To: djgpp AT delorie DOT com Subject: Re: VBE 2.0 Pmode Bank Switching... Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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...