

|
 |
| Programming > Assembly x86 > Re: mov seg, re... |
|
| << Topic |
< Post |
Post 2 of 10 Topic 4579 of 4822
|
Post > |
Topic >> |
Re: mov seg, reg/mov reg, seg and size prefix
by "Wolfgang Kern" <spamtrap@[EMAIL PROTECTED]
>
Mar 19, 2008 at 12:54 AM
| rhyde@[EMAIL PROTECTED]
" asked:
[about seg reg size]
No Randy, there never were any requirement to tell a 'load seg-reg'
-instruction that a seg-reg can only hold 16 bits.
The opposite direction ie: "mov eax,es" does an Zx-extension on modern
CPUs while some oldies left the high word(upper 16 bits) undefined
or unaltered, but a "push es |pop eax" sequence may just show
any previous stack contents in the highword of eax instead of Zero.
So neither 66 nor 67 prefix are required for load sreg, even some tools
may create them for museum-compatibility reasons, but Push/Pop
should be aware of it if not just used for save/restore seg-regs.
__
wolfgang
I expect Rene will be very happy to see you post again :)


|
10 Posts in Topic:
|
"rhyde@[EMAIL PROTEC |
2008-03-18 14:24:20 |
|
"Wolfgang Kern" |
2008-03-19 00:54:57 |
|
s_dubrovich <spamtrap@ |
2008-03-18 16:23:32 |
|
Frank Kotler <spamtra |
2008-03-19 06:55:37 |
|
"Rod Pemberton" |
2008-03-19 09:05:52 |
|
Frank Kotler <spamtra |
2008-03-19 20:17:25 |
|
"Rod Pemberton" |
2008-03-20 05:39:58 |
|
Frank Kotler <spamtra |
2008-03-21 09:38:20 |
|
"rhyde@[EMAIL PROTEC |
2008-03-27 09:29:22 |
|
"Rod Pemberton" |
2008-03-27 15:51:32 |
|
Post A Reply:

|
|
|
|