Thread: DevC++ SVGA

  1. #1
    Registered User whistlenm1's Avatar
    Join Date
    Jan 2002

    DevC++ SVGA

    I am using DeVC++ on win2k. I am playing around with the following code but it will not work, my guess is that win2k will not allow me to access vesa bios. Thanks in advance , Oh if this thread double post I'm sorry, do not know what happened the firest time


    #include <iostream.h>
    #include <stdlib.h>

    void set_mode(void)
    asm("movw $0x4f02, %ax");
    asm("movw $0x0103, %bx");
    asm("int $0x10");

    int main(int argc, char *argv[])
    cout <<"This is just a test" <<endl;

    Man's mind once streched by a new idea, never regains its original dimensions
    - Oliver Wendell Holmes

    In other words, if you teach your cat to bark (output) and eat dog food (input) that doesn't make him a dog. It would have to chase cars, chew bones, and have puppies before I'd call it Rover ;-)
    - WaltP

  2. #2
    &TH of undefined behavior Fordy's Avatar
    Join Date
    Aug 2001
    Nope....welcome to a proper protected mode OS.....

    You need to run in ring 0 to be able to access bios directly......

    Best bet for graphics, spend some time learning OpenGL or DirectX

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 1
    Last Post: 08-19-2007, 03:55 AM
  2. SVGA graphics mode in MS VC++ 98
    By bennyandthejets in forum C++ Programming
    Replies: 3
    Last Post: 07-27-2002, 09:55 PM
  3. SVGA mode in Borland C
    By WHurricane16 in forum C Programming
    Replies: 4
    Last Post: 04-09-2002, 06:24 PM
  4. wanted !! SVGA mouse routines
    By omkarck in forum C Programming
    Replies: 1
    Last Post: 11-28-2001, 09:03 AM
  5. Svga...
    By minime6696 in forum C++ Programming
    Replies: 1
    Last Post: 09-04-2001, 04:28 PM