flat assembler
Message board for the users of flat assembler.
Index
> Main > error: value out of range. |
Author |
|
revolution 29 Jan 2021, 13:03
In 64-bit mode all immediate encodings are signed 32-bits maximum.
So if you encode 0x8000_0000 as an immediate then it gets sign extended to 0xffff_ffff_8000_000 internally before the cmp is executed. You can encode all 64-bits with mov. Code: mov rcx,0x8000_0000 ; not sign extended cmp r14,rcx |
|||
29 Jan 2021, 13:03 |
|
monasguy 29 Jan 2021, 16:01
Thanks
|
|||
29 Jan 2021, 16:01 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.