flat assembler
Message board for the users of flat assembler.
Index
> Main > RDMSR/WRMSR in 64-bit mode |
Author |
|
Hunter 17 Jul 2006, 08:01
Ok, for XLATB the following code may be used:
xlat [ebx] xlat [rbx] and for other instructions prefix O64 would be very useful. |
|||
17 Jul 2006, 08:01 |
|
Tomasz Grysztar 17 Jul 2006, 09:22
Strange, Intel doesn't specify any syntax settings to differ the two forms of those instructions. But perhaps RDMSRQ/WRMSRQ should be OK, as fasm already doest it with RETQ etc.
|
|||
17 Jul 2006, 09:22 |
|
Hunter 17 Jul 2006, 15:38
And SYSEXITQ, SYSRETQ ?
|
|||
17 Jul 2006, 15:38 |
|
MazeGen 24 Jul 2006, 08:08
Just curious, is there real need for 64-bit RDMSR/WRMSR? I mean, is there actually any MSR with number greater than 2^32-1, which doesn't fit into ECX?
|
|||
24 Jul 2006, 08:08 |
|
Hunter 24 Jul 2006, 09:08
Tomasz, thank you very much for adding WRMSRQ/RDMSRQ/SYSEXITQ to 1.67.6 . And what about SYSRETQ and Intel multi-bytes NOPs?
|
|||
24 Jul 2006, 09:08 |
|
Tomasz Grysztar 24 Jul 2006, 09:25
In my Intel manuals the SYSRET doesn't use such setting (there's no REX.W-prefixed variant mentioned).
Maybe that's just that I have old manuals, since multi-byte NOP are also not mention... *sigh* Perhaps a time for update... |
|||
24 Jul 2006, 09:25 |
|
MazeGen 24 Jul 2006, 09:32
In my revision (19), it is said that SYSRET depends only on operand-size prefix.
edit: sorry, I confused it Last edited by MazeGen on 24 Jul 2006, 09:53; edited 1 time in total |
|||
24 Jul 2006, 09:32 |
|
Tomasz Grysztar 24 Jul 2006, 09:48
OK, you're right, the SYSRET is also affected with REX.W - when it has 32-bit operand size it goes into compatibility mode, while with 64-bit operand size it goes into long mode.
Is the SYSRETQ a good mnemonic here? Per analogy pehaps it's acceptable... |
|||
24 Jul 2006, 09:48 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.