flat assembler
Message board for the users of flat assembler.
Index
> Main > long operands |
Author |
|
revolution 02 Aug 2010, 11:36
b1528932 wrote: I couldnt find it in manuals, they dont cover it. b1528932 wrote: 1. when operant is promoted to 64 bits by default? b1528932 wrote: 2. in RIP relative addressing address is 32 bits. its sign or zero extended to 64? Software Developer’s Manual Volume 1: Basic Architecture 3.7.5.1 Specifying an Offset in 64-Bit Mode |
|||
02 Aug 2010, 11:36 |
|
MazeGen 03 Aug 2010, 08:16
b1528932 wrote: I couldnt find it in manuals, they dont cover it. They do. b1528932 wrote: 1. when operant is promoted to 64 bits by default? In mov rax, moffset, only the moffset is 64-bit by default (because the address size is 64 bits by default). RAX is promoted by REX.W. As for mov reg, imm (B8-BF), it is 32-bit by default. Use REX.W to get mov reg64, imm64. The Intel manual writes: Quote: In 64-bit mode, two groups of instructions have a default operand size of 64 bits (do not need a REX prefix for this operand size). These are: MOD: please move this topic to Main. |
|||
03 Aug 2010, 08:16 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.