I am abstracting certain assembly language routines that C++ is unable to do behind an interface that is non portable.
One of these is the common INT instruction.
What I am trying to do is develope a small inline routine to generate an arbitrary interrupt:
Code: Select all
EXTERN inline void CALLING geninterrupt (int interruptnum) {
_asm {
// How should I execute the INT instruction?
}
}
It seems the only syntax that is acceptable is INT value which will not work here.
The only option I can think of is hard coding each INT call (i.e., Perhaps a large switch), which is very ugly.
Any suggestions are appreciated