flat assembler
Message board for the users of flat assembler.
Index
> Main > Cmovnz what a f ? |
Author |
|
Roman 19 Jan 2024, 12:36
I read nice asm command. I test this and thinking do assert without jnz.
Code: mov ebx,11 xor eax,eax test eax,eax ;zf = 1 cmovnz eax,ebx ; eax = 0 I am happy, work. Now i am write code for assert and ... Code: xor eax,eax test eax,eax ;zf = 1 cmovnz eax,[eаx] ;Get crash ! What a f..k ? And not exist cmovnz [eax],register https://www.youtube.com/watch?v=emiNHDgFUC4&t=2s Last edited by Roman on 19 Jan 2024, 13:19; edited 2 times in total |
|||
19 Jan 2024, 12:36 |
|
macomics 19 Jan 2024, 12:47
ne/nz = (zf=0)
Code: mov ebx,11 xor eax,eax cmp eax,1 ;zf = 0 cmovnz eax,ebx ; eax = ebx |
|||
19 Jan 2024, 12:47 |
|
revolution 19 Jan 2024, 13:33
If we look at the pseudo-code for the operation (from the x86 manual) we see this:
Code: temp := SRC IF condition TRUE THEN DEST := temp; ELSE IF (OperandSize = 32 and IA-32e mode active) THEN DEST[63:32] := 0; FI; |
|||
19 Jan 2024, 13:33 |
|
Roman 19 Jan 2024, 13:44
Its bad news.
Intel planned implement in avx10 instruction test memory. |
|||
19 Jan 2024, 13:44 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.