|
From: Jason H. <jas...@bt...> - 2001-09-15 23:57:57
|
I was looking up movw in some Assembler books I have, but couldn't find =
it? What processor was that instruction introduced for? My assembler =
knowledge is a bit rusty I'm afraid, and those books are probably a bit =
old now.
An exception like that would probably be an indication of either trying =
to access memory that you don't have the rights too, or using an =
instruction which you either don't have right's to or on the wrong =
processor, e.g. a pentium instruction on a 386 machine.
I just mention this as a guide that might help, but mainly out of =
curiousity about using asm and such.
Jason.
----- Original Message -----=20
From: Santiago Londo=F1o=20
To: dev...@li...=20
Sent: Saturday, September 15, 2001 8:11 PM
Subject: [Dev-C++] Need help
Hello friends:
Can anyone help me with this code?
I compiled it using Dev C with Mingw32 but when I execute the program =
the screen gets blue and I get the typical windows error: critical =
exception at bla,bla,bla,lbla
#include <stdio.h>
int main()
{
asm("movw $0x0013, %ax\n\t"
"int $0x10");
getch();
asm("movw $0x0003, %ax\n\t"
"int $0x10");
return 0;
}
|