flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
revolution 08 Nov 2016, 08:51
The cmp instruction cannot support large immediate values >=2^31. It is a limitation of the x86-64 CPU.
To fix this you can use either lea for RIP relative offsets to "start", or use mov to get the absolute address (but this makes your code non-relocatable). Last edited by revolution on 08 Nov 2016, 08:55; edited 1 time in total |
|||
![]() |
|
funggong 08 Nov 2016, 09:05
revolution wrote: The cmp instruction cannot support large immediate values >=2^31. It is a limitation of the x86-64 CPU. thank you very much. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.