Dear All,
I have comiled this a.cpp file as follows;Qt Code:
#include <iostream> using namespace std; int main() { __asm__ int 5; // generate intertupt 5 return 0; }To copy to clipboard, switch view to plain text mode
g++ a.cpp
a.cpp: In function ‘int main()’:
a.cpp:5: error: expected `(' before ‘int’
a.cpp:5: error: expected unqualified-id before numeric constant
and found the above error
Can any one guide me where I am wrong;
How a way I use interrupts using __asm__ in g++.
Bookmarks