Mail Archives: djgpp/1997/02/13/09:09:16
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 -