int86()

This is a discussion on int86() within the C++ Programming forums, part of the General Programming Boards category; Excuse me if this sounds stupid, but what does really int86() do ? I can't seem to find any documentation ...

  1. #1
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342

    int86()

    Excuse me if this sounds stupid, but what does really int86() do? I can't seem to find any documentation on it.

  2. #2
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    It's not standard. It generates a hardware interrupt on 80x86 processors.

    Generally, unless you're programming for pure DOS (NOT the same as a Windows console), you won't use it.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  3. #3
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    >> It's not standard. It generates a hardware interrupt on 80x86 processors.

    Do you know where I can find a list of what the different 1st arg values would do?

  4. #4
    (?<!re)tired Mario F.'s Avatar
    Join Date
    May 2006
    Location
    Portugal
    Posts
    7,412
    DJGPP documentation should have it
    http://www.delorie.com/djgpp/
    The programmer’s wife tells him: “Run to the store and pick up a loaf of bread. If they have eggs, get a dozen.”
    The programmer comes home with 12 loaves of bread.


    Originally Posted by brewbuck:
    Reimplementing a large system in another language to get a 25% performance boost is nonsense. It would be cheaper to just get a computer which is 25% faster.

  5. #5
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    Quote Originally Posted by Queatrix
    >> It's not standard. It generates a hardware interrupt on 80x86 processors.

    Do you know where I can find a list of what the different 1st arg values would do?
    They are the x86 interrupts, I'm sure you can find plenty of info about them.

    But again -- your computer typically needs to be running real DOS, not win95, 98, ME, XP, 2000, etc. You can use them on a win 3.1 machine though. You need an operating system more than ten years old to ensure it works as you expect. Some interrupts may work under the later operating systems as all of them have certain levels of DOS emulation. But in general it's a very bad idea to use them; they are extremely legacy code, and they weren't portable even when they were commonly used.
    Last edited by Cat; 10-03-2006 at 09:21 PM.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  6. #6
    Registered User Queatrix's Avatar
    Join Date
    Apr 2005
    Posts
    1,342
    Is there a "windows" version of int86()?

    >> I'm sure you can find plenty of info about them.

    Not really.

  7. #7
    Cat
    Cat is offline
    Registered User
    Join Date
    May 2003
    Posts
    1,571
    The 'Windows version' would be things like the WinAPI; where interrupts were very hardware-specific AND OS-specific, the WinAPI is only OS-specific.
    You ever try a pink golf ball, Wally? Why, the wind shear on a pink ball alone can take the head clean off a 90 pound midget at 300 yards.

  8. #8
    Registered User
    Join Date
    Oct 2006
    Posts
    250
    For info about interrupts, you should try Ralf Brown's interrupt list.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Header file for int86() function
    By Mavix in forum C Programming
    Replies: 4
    Last Post: 10-02-2006, 01:12 AM
  2. inline assembler as alternative to int86()
    By Bigbio2002 in forum C Programming
    Replies: 3
    Last Post: 11-12-2004, 03:57 PM
  3. int86() - undefined reference
    By Kagey in forum C Programming
    Replies: 7
    Last Post: 11-11-2002, 12:22 AM
  4. need help with int86()
    By ram047 in forum C Programming
    Replies: 4
    Last Post: 02-21-2002, 04:20 PM
  5. Problem with int86() function
    By a_learner in forum C Programming
    Replies: 2
    Last Post: 10-11-2001, 05:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21