Hi can someone help me convert this code to ANSI C
many thanks,
ed.
#include<iostream.h>
#include<conio.h>
void main(void)
{
clrscr();
unsigned long int a, b, c, d;
_asm mov eax, 0xe801
_asm int 0x15
_asm mov dword ptr a, ax
_asm mov dword ptr b, bx
_asm mov dword ptr c, cx
_asm mov dword ptr d, dx
cout<<a<<endl<<b<<endl<<c<<endl<<d<<endl;
unsigned long extendedSize = (unsigned long) a + ((unsigned long) b << 6);
unsigned long configuredSize = (unsigned long) c + ((unsigned long) d << 6);
cout<<endl<<extendedSize ;
getch();
}
converting
RE:converting
Yes, ofcourse. But you could as well use a (non standard-not ANSI) function called int86 or something of that sort.
Anton.
Anton.
RE:converting
In asm what do you want to do, as i do not under stand some of the c++ code.
ASHLEY4.
ASHLEY4.