flat assembler
Message board for the users of flat assembler.
Index
> Main > Disable automatic RIP-relative addressing |
Author |
|
Tomasz Grysztar 03 May 2024, 09:07
I made a tiny update to the fasm2 package, exposing an option that was normally hidden under the hood of fasm encoders. You can now choose disable or enforce the automatic RIP-relative addressing in long mode, either for individual instructions:
Code: add rax,[var] ; by default RIP-relative add rax,[fs:var] ; by default absolute {norip} add rax,[var] ; absolute {rip} add rax,[fs:var] ; RIP-relative Code: use norip Code: use ripauto The instruction decorators and USE command remain undocumented except for a couple of examples in the old prototype. If you need a list of available options, you can find them in the encoder source (x86-2.inc). |
|||
03 May 2024, 09:07 |
|
ProMiNick 05 May 2024, 22:28
I guess because RIP addressing isn`t size.
And by fasm2 design place for instruction modifiers is in {}. [rest not related to RIP addressing - deleted] |
|||
05 May 2024, 22:28 |
|
revolution 06 May 2024, 02:52
edfed wrote: as if it was size operator like dword, word, byte? If you view it as an address modifier (or address specifier) then it could go inside the bracket, the same place the size operator goes. Code: mov rax,[abs address] mov rax,[rel address] Code: mov rax,[abs dword address] mov rax,[rel word address] |
|||
06 May 2024, 02:52 |
|
Tomasz Grysztar 06 May 2024, 08:01
edfed wrote: why don't Code: use norip Interestingly, Intel proposed a syntax identical to fasm2 decorators for signalling prefix choices of the new APX instructions. Must have been convergent evolution (see the evolution of fasm2 decorators in the old thread about advanced x86 encoder). |
|||
06 May 2024, 08:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.