flat assembler
Message board for the users of flat assembler.
Index
> Main > Improper Opcode for flat binary file |
Author |
|
tthsqe 24 Jul 2013, 03:24
8B 3D 00 00 00 00 is correct for the code that you posted. I'm quite sure that in long mode direct memory references are RIP relative from the next instruction.
There might be some some encoding of mov eax,[blah blah] that are not relative to RIP but I was never able to deduce this from the documentation. |
|||
24 Jul 2013, 03:24 |
|
TightCoderEx 24 Jul 2013, 07:50
Even though the first scenario is the better alternative albeit 1 byte, but I didn't expect to see position independence mixed with absolute like 0C compared to 07
Code: 00000007 BB78001000 mov ebx,0x100078 0000000C 488B3D3D000000 mov rdi,[rel 0x50] 00000013 488B7510 mov rsi,[rbp+0x10] Anyway, problem solved, thanks |
|||
24 Jul 2013, 07:50 |
|
l_inc 24 Jul 2013, 19:49
TightCoderEx
You can force absolute addressing by putting a size operator into the brackets: Code: mov edi,[qword Toolc] _________________ Faith is a superposition of knowledge and fallacy |
|||
24 Jul 2013, 19:49 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.