From: "Sérgio Vale e Pace" Newsgroups: comp.os.msdos.djgpp Subject: Re: VESA Bank Switching...Please Help Me! Date: Thu, 19 Mar 1998 23:54:57 -0300 Organization: All USENET -- http://www.Supernews.com Lines: 35 Message-ID: <3511DA80.A17208CE@gold.com.br> References: <351153F1 DOT F28C0814 AT bath DOT ac DOT uk> NNTP-Posting-Host: 1474 AT 200 DOT 215 DOT 160 DOT 225 Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk Richard Michael Smith escreveu: > Dear All, > > This is really driving me crazy now...I am certain it cannot be that > difficult! Don't worry this question should be included in the great questions of the mankind. > > > I am working with VESA 1.2 and I have got the 32-bit address of the > bank-switching function...but can I call it without crashing? No. > Well, you have two options, the easy one it's use the VESA bios function (0x4f05), but you are probably saying "Oh NO! again somebody telling me to use the function 5", and you have the hard way, you can use the DPMI function to call real mode procedure, to be precise "__dpmi_simulate_real_mode_procedure_retf", and call the function using this (use the on-line manuals for more information about how exactly do this, but it is not really dificult). The bios method is really easier to use in real code, but in a test in the "i'm not sure if this will work" style I find the direct method a little bit faster. If you want to make more perfermonce tests about this I will be glad if you let me know your results. If you have any other questions, let me know. Sérgio Vale e Pace