flat assembler
Message board for the users of flat assembler.
Index
> Main > cmove error if cmove eax,adr |
Author |
|
Roman 16 Apr 2021, 05:33
I use fasmw 1.73
I try compile and get error invalid argument: Code: in data: Val1 dd 2 cmove r14,Val1 I read this and see cmove must get mem addres. https://www.felixcloutier.com/x86/cmovcc Last edited by Roman on 16 Apr 2021, 05:42; edited 1 time in total |
|||
16 Apr 2021, 05:33 |
|
revolution 16 Apr 2021, 05:36
dd is a dword.
r14 is a qword. |
|||
16 Apr 2021, 05:36 |
|
Roman 16 Apr 2021, 05:45
Not work too:
Code: in data: Val1 dq 2 cmove r14,Val1 ;i get address ! Not value from [Val1] Work only: Code: in data: Val1 dd 2 mov rdx,Val1 cmp eax,ebx cmove r14,rdx I found this https://wiki.cheatengine.org/index.php?title=Assembler:Commands:CMOVE |
|||
16 Apr 2021, 05:45 |
|
Roman 16 Apr 2021, 06:12
I think exist cmove reg, mem address.
And i write cmove r14, address Val1 But why intel not have cmove reg, address mem I not understood. Last edited by Roman on 16 Apr 2021, 16:22; edited 1 time in total |
|||
16 Apr 2021, 06:12 |
|
revolution 16 Apr 2021, 06:14
Roman wrote: But why intel not have cmove reg, address mem ... |
|||
16 Apr 2021, 06:14 |
|
DimonSoft 16 Apr 2021, 07:30
It’s not “address”, it’s just an immediate with no implied semantics.
|
|||
16 Apr 2021, 07:30 |
|
Bytecroc 21 May 2021, 15:51
Hello, I am starting to learn assembly 64bit in this days, year ago I programmed a bit 32bit assebly
so I put together the websides. I found that for x64 it is not CMOVE instead use CMOVEQ https://docs.oracle.com/cd/E19120-01/open.solaris/817-5477/6mkuavhs9/index.html#indexterm-88 https://www.doc-developpement-durable.org/file/Projets-informatiques/cours-&-manuels-informatiques/Solaris-sun/Solaris11/x86%20Assembly%20Language%20Reference%20Manual.pdf |
|||
21 May 2021, 15:51 |
|
Bytecroc 21 May 2021, 16:17
Sorry I must post again
when I go to Intel https://www.intel.com/content/dam/www/public/us/en/documents/manuals/64-ia-32-architectures-software-developer-instruction-set-reference-manual-325383.pdf then cmove reg,mem is valid for x64 did you have assembled with PE64 ? |
|||
21 May 2021, 16:17 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.