Thread: Anybody know good programming tutorial for SVGA programming thru DOS?

  1. #1
    Registered User
    Join Date
    Dec 2006
    Posts
    14

    Anybody know good programming tutorial for SVGA programming thru DOS?

    Anybody know good programming tutorial for SVGA programming thru DOS?

    plz help me.

  2. #2
    Registered User VirtualAce's Avatar
    Join Date
    Aug 2001
    Posts
    9,607
    Yes but they will not work in a Windows session. There are 2 methods:

    • Use bank switching via interrupts or pointer to bank switch function in hardware
    • Use the linear frame buffer


    The bank switching might work under a DOS session but the pointer to the bank switch function will fail in a DOS session under Windows XP.

    The linear frame buffer will only work with a DOS extender and will most likely fail under Windows XP. I know for sure you cannot use the near-pointer LFB method under Windows XP. The only method that will work is using DJGPP and the farnspoke() family of functions. Since this means that each pixel plot equates to a function call you are probably not going to get any kind of good performance. Windows will not allow this anymore:

    Code:
    unsigned int *pLFB=NULL;
    
    //Get address to LFB
    ....
    ....//Fails when trying to map LFB to address space and access as a near pointer
    
    pLFB[offset]=color;    //Fails since pLFB is NULL



    A better option would be to explore either OpenGL or Direct3D which have made bank switching and linear frame buffer issues a thing of the past.
    Last edited by VirtualAce; 08-19-2007 at 03:58 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. My new website
    By joeprogrammer in forum A Brief History of Cprogramming.com
    Replies: 19
    Last Post: 03-17-2006, 07:38 PM
  2. Where is there a good SDL tutorial?
    By ballmonkey in forum C++ Programming
    Replies: 2
    Last Post: 01-25-2005, 12:43 PM
  3. Cprog tutorial: Design Patterns
    By maes in forum C++ Programming
    Replies: 7
    Last Post: 10-11-2004, 01:41 AM
  4. Tutorial any good?
    By Anthony172 in forum C++ Programming
    Replies: 10
    Last Post: 10-22-2002, 01:32 PM
  5. Is there a good tutorial for Windows programming??
    By BubbleMan in forum Windows Programming
    Replies: 3
    Last Post: 08-16-2001, 03:49 PM