flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Why mov [es:rbx],ax complies |
Author |
|
l4m2 14 Dec 2017, 07:40
Code: use64 mov [es:rbx],ax |
|||
14 Dec 2017, 07:40 |
|
revolution 14 Dec 2017, 07:41
l4m2 wrote: Why mov [es:rbx],ax complies? |
|||
14 Dec 2017, 07:41 |
|
l4m2 14 Dec 2017, 08:10
Document say es: is invalid in 64 bit mode. Is there a time when it still work?(like POP CS)
|
|||
14 Dec 2017, 08:10 |
|
revolution 14 Dec 2017, 08:28
The segment registers are still valid and must point to valid descriptors but the base and limit fields are ignored, only the access rights are used.
|
|||
14 Dec 2017, 08:28 |
|
revolution 14 Dec 2017, 08:49
You posted an ES override. That is different from POP ES. The POP ES instruction might not be valid, but the ES register is valid.
|
|||
14 Dec 2017, 08:49 |
|
l4m2 14 Dec 2017, 08:59
Quote: If an instruction uses base registers RSP/RBP and uses a segment override prefix to specify a non-SS segment, a So here treat ignore as allowed Oh it seems the ES: is also not complied out |
|||
14 Dec 2017, 08:59 |
|
revolution 14 Dec 2017, 09:11
That is for the stack registers RBP/RSP. For ordinary registers like RBX that paragraph does not apply.
|
|||
14 Dec 2017, 09:11 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.