Mail Archives: djgpp/1997/03/05/05:05:00
Maxime Viallet (Fviallet AT bplorraine DOT fr) wrote:
: Hello !
: I'm have some problem when I write inline ASM :
: to put I pixel a made (in pascal) :
: mov ax,$A000
: mov es,ax
: but when i do this :
: movw $0xA000,%ax\n
: movw %ax,%es\n
: The program crash ! (segmentation fault , i think...)
: Can you explain me ???
DJGPP compiles *protected mode* programs. This means, among other
things, that memory is accessed in a completely different manner. The
DJGPP FAQ list explains this in some detail, but shortly, you should use
the _far* functions instead of inline assembly.
--
Esa Peuha
student of mathematics at the University of Helsinki
http://www.helsinki.fi/~peuha/
- Raw text -