Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Interrupts

Status
Not open for further replies.

domenu

Programmer
May 31, 2002
30
BE
Hi,

I've been programming C++ in Borland, and I recently tried something out
in Visual C++, but there are a lot of differences ...

My problem : * how to program interrupts (BIOS) in Visual C++ ???
* is there something like the REGS and SREGS struct in Visual C++
* what function to use to generate the interrupt (int86 doesn't exist in VC++..)

Please help me out ....
THANK YOU ------>>> nick
 
One option might be to put assembly code blocks inside your c/c++ code.

__asm
{
mov eax, 01h
int 10h
}
 
Seems to me you are migrating from a dos (= 16-bit) environment to a 32 bits (visual C++) environment. With dos, you did need a lot of the interrupts in order to get something done specific to the system. In Win32, you probably don't need this, because the platform SDK contains almost anything you will need.

Marcel
 
Status
Not open for further replies.

Similar threads

Replies
1
Views
100

Part and Inventory Search

Sponsor

Back
Top