Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Assembly x86 > Re: About mov i...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 6 of 9 Topic 4639 of 4825
Post > Topic >>

Re: About mov instruction and gs register Options

by "Wolfgang Kern" <spamtrap@[EMAIL PROTECTED] > May 1, 2008 at 10:27 PM

Gil Hamilton mentioned:
....
>>> when cpu run to the instuction 'mov gs, cx', CPU will reset.
>>> i can assure the value in cx is correctly.

>> A MOV GS, with whatsoever value wont raise an exception except
>> if the CPU don't got a GS (EXCeption06 on x286 and previous).
>> 512 KB RAM ?   mmh, are you sure you have a 486 CPU ?

> Not sure where you got this.  According to the Intel programming manual:
> If the destination operand is a segment register (DS, ES, FS,
> GS, or SS), the source operand must be a valid segment selector.
> In protected mode, moving a segment selector into a segment
> register automatically causes the segment descriptor information
> associated with that segment selector to be loaded into the
> hidden (shadow) part of the segment register. While loading this
> information, the segment selector and segment descriptor
> information is validated (see the "Operation" algorithm below).
> The segment descriptor data is obtained from the GDT or LDT
> entry for the specified segment selector.

You are right, I assumed a fully defined GDT/LDT setup ...
It will raise exception0D for a value beyond GDT-limit
or a not present LDT.

__
wolfgang
 




 9 Posts in Topic:
About mov instruction and gs register Options
leilei <spamtrap@[EMA  2008-04-30 09:55:11 
Re: About mov instruction and gs register Options
Frank Kotler <spamtra  2008-05-01 00:43:59 
Re: About mov instruction and gs register Options
"Alexei A. Frounze&q  2008-04-30 20:04:51 
Re: About mov instruction and gs register Options
"Wolfgang Kern"  2008-05-01 10:05:03 
Re: About mov instruction and gs register Options
Gil Hamilton <spamtra  2008-05-01 15:17:08 
Re: About mov instruction and gs register Options
"Wolfgang Kern"  2008-05-01 22:27:21 
Re: About mov instruction and gs register Options
leilei <spamtrap@[EMA  2008-05-01 07:55:45 
Re: About mov instruction and gs register Options
"Wolfgang Kern"  2008-05-01 23:13:59 
Re: About mov instruction and gs register Options
leilei <spamtrap@[EMA  2008-05-01 07:54:08 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 14 8:38:35 CDT 2008.