Mail Archives: djgpp/1997/07/23/15:07:40
On Sat, 19 Jul 1997 14:27:25 -0600, Jason Meehan <Fuckyou AT nowhere DOT com> wrote:
>Anyone know why this crashes?
>
>asm("movw %bx,%es");
>
>I get a GPF at eip =00002457, error=f140
>
>Thanks
You are writing an illegal value into the es register.
Note that the processor not just copies the value from BX to ES but also
tries to load the data from the descriptor table to the hidden part of ES.
Peter Steiner
--
_ x ___
/ \_/_\_ /,--' p DOT steiner AT t-online DOT de (Peter Steiner)
\/>'~~~~//
\_____/ signature V0.2 alpha
- Raw text -