BIOS Interrupts in VC++

This is a discussion on BIOS Interrupts in VC++ within the C++ Programming forums, part of the General Programming Boards category; Hey, The Windows Console Programs run in Virtual 8086 Mode, so it is possible to Acess BIOS Interrupts. How would ...

  1. #1
    Registered User
    Join Date
    Sep 2002
    Posts
    70

    BIOS Interrupts in VC++

    Hey,

    The Windows Console Programs run in Virtual 8086 Mode, so it is possible to Acess BIOS Interrupts. How would i do this in VC++ 6?? When i try to acess an Interrupt using the _asm Keyword the program Crashes!

    Is there another way?? Can this be done at all??

    Please Help.....,
    Cya.

  2. #2
    Registered User
    Join Date
    Feb 2003
    Posts
    8
    Hi there

    I think your application console program is a 16 bit app,and it windows allocates a dedicated VM for it,it's ok till here,but most of bios functions have direct access to ports or memory locations and windows generate an exception error in these situation,and if you don't handle this exception error,your program will have an unpredictable behaviour.So you must be careful about your bios function at first,does it access a port or memory location directly?if yes,it goes wrong and windows doesn't allow any direct access to ports or memory locations.More about this is my thread "Diving into hardware device drivers",and 2 replies are there.

    I hope you success)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Can you still view the bios screen with a bad CPU?
    By HyperCreep in forum Tech Board
    Replies: 4
    Last Post: 12-31-2006, 06:57 PM
  2. Lost BIOS menu options?
    By PJYelton in forum Tech Board
    Replies: 3
    Last Post: 11-14-2004, 08:23 AM
  3. Bios upgrade-dell latitude
    By GanglyLamb in forum Tech Board
    Replies: 4
    Last Post: 06-18-2003, 02:55 PM
  4. Bios
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 10
    Last Post: 03-12-2002, 07:18 AM
  5. MSVS 6.0 does not read BIOS interrupts
    By fatpotatohead in forum C Programming
    Replies: 3
    Last Post: 08-27-2001, 01:04 AM

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