flat assembler
Message board for the users of flat assembler.
Index
> Main > Constant size forcing |
Author |
|
CandyMan 11 Oct 2009, 17:09
Why this not works?
imul r8,rdx,dword 0 |
|||
11 Oct 2009, 17:09 |
|
Fanael 11 Oct 2009, 20:25
You can always put some bogus value to force immediate's size and then overwrite that immediate, as in this example:
Code: imul r8, rax, 1000000 ;or any other value that must be represented as a dword store dword 0 at $-4 ;overwrite it with 0 |
|||
11 Oct 2009, 20:25 |
|
Tomasz Grysztar 11 Oct 2009, 21:05
LocoDelAssembly wrote: Perhaps this "unfairness" was discussed already but I'm pointing it out just in case it wasn't really intended. |
|||
11 Oct 2009, 21:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.