home *** CD-ROM | disk | FTP | other *** search
- //A sample calling program which calls intexec.asm
-
- #include <iostream.h>
- #include <conio.h>
-
- extern "C" execute(char,int,int,int,int,int);
-
- void main(void)
- {
- unsigned int intno,AXVAL,BXVAL,CXVAL,DXVAL,FLAGVAL;
-
- cout << "This program demonstrates to call any real mode interrupt in ";
- cout << "8086 assembly" << endl;
- cout << "Please Be Warned about the Interrupt Number you give" << endl;
- cout << "Press a key to continue" << endl;
- getch();
-
-
- cout << "Enter the value for AX: " << endl;
- cin >> hex >> AXVAL;
- cout << "Enter the value for BX: " << endl;
- cin >> hex >> BXVAL;
- cout << "Enter the value for CX: " << endl;
- cin >> hex >> CXVAL;
- cout << "Enter the value for DX: " << endl;
- cin >> hex >> DXVAL;
- cout << "Enter the value for FLAGS: " << endl;
- cin >> hex >> FLAGVAL;
- cout << "Please Enter the Interrupt Number: " << endl;
- cin >> hex >> intno;
-
- execute(intno&0x00ff,AXVAL,BXVAL,CXVAL,DXVAL,FLAGVAL);
- }
-