Thread: inline assembler as alternative to int86()

  1. #1
    Counter-Strike Master
    Join Date
    Dec 2002
    Posts
    38

    Question inline assembler as alternative to int86()

    i have a book with some code samples using int86() to do graphics functions. on the graphics tutorials on this site, i saw the author using inline assembler. how would i go about converting the outdated interrupt code to inline assembler?

    note: im at school now so i cant post the code sample i wish to convert, but ill post it as soon as i get home
    You say "Impressive!", but I already know it
    I'm a hardcore player and I'm not afraid to show it

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well unless you're still stuck with real DOS as your operating system, there are usually much better ways of doing graphics.
    State your OS and compiler for more information

  3. #3
    Counter-Strike Master
    Join Date
    Dec 2002
    Posts
    38
    operating system: xp home sp1
    compiler: msvc++ 6.0. i also have dev c++ and borland 5.5 but i rarely use them
    Last edited by Bigbio2002; 11-12-2004 at 02:49 PM.
    You say "Impressive!", but I already know it
    I'm a hardcore player and I'm not afraid to show it

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well graphics are discussed quite frequently on this forum
    http://cboard.cprogramming.com/forumdisplay.php?f=6

    In particular, this thread is worth a read
    http://cboard.cprogramming.com/showthread.php?t=33318

    If this is your first foray into graphics, then I'd perhaps consider libsdl, which is a downloadable package in the latest dev-c++, so there isn't much you have to do to get up and running.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Code review
    By Elysia in forum C++ Programming
    Replies: 71
    Last Post: 05-13-2008, 09:42 PM
  2. Certain functions
    By Lurker in forum C++ Programming
    Replies: 3
    Last Post: 12-26-2003, 01:26 AM
  3. Inline Assembler Macros?
    By Aidman in forum C++ Programming
    Replies: 14
    Last Post: 07-15-2003, 05:10 AM
  4. Inline Assembler
    By mikef in forum C Programming
    Replies: 4
    Last Post: 08-22-2002, 03:28 PM
  5. Watcom C++ inline assembler
    By r0x in forum C++ Programming
    Replies: 0
    Last Post: 06-03-2002, 11:21 AM