Thread: Using Software Interrupts in C++

  1. #1
    Unregistered
    Guest

    Using Software Interrupts in C++

    Is there a way to use software interrupts (BIOS intterrupts) in C++? If so, what are some of the standard output and input Interrupts?

  2. #2
    Registered User
    Join Date
    Jan 2002
    Posts
    363
    The only way I can think to do that using inline asm.
    But once you start doing that you really have to just go out and learn some actual assembely.

  3. #3
    Registered User rmullen3's Avatar
    Join Date
    Nov 2001
    Posts
    330
    Well, maybe

    Code:
    //
    __asm  INT 21h
    //
    ?? I dunno, heh. I suck at asm.

  4. #4
    Linguistic Engineer... doubleanti's Avatar
    Join Date
    Aug 2001
    Location
    CA
    Posts
    2,459
    it depends on the compiler. but borland 4.5 [and others i'd presume] have int86 () and REGS structures, DJGPP has __dpmi_int and __dpmi_regs... so check it out... what's your compiler?
    hasafraggin shizigishin oppashigger...

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Timers and software interrupts
    By Afro1986 in forum C Programming
    Replies: 6
    Last Post: 01-21-2009, 06:21 AM
  2. Software Design/Test - Redmond, WA
    By IRVolt in forum Projects and Job Recruitment
    Replies: 2
    Last Post: 06-11-2008, 10:26 AM
  3. Why C Matters
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 136
    Last Post: 01-16-2008, 09:09 AM
  4. Adding trial period to software
    By BobS0327 in forum C Programming
    Replies: 17
    Last Post: 01-03-2006, 02:13 PM