flat assembler
Message board for the users of flat assembler.
Index
> Main > Difference between je and jz. |
Author |
|
Roman 15 Jul 2022, 02:04
Why exist je and jz?
I always using jz or Jnz. |
|||
15 Jul 2022, 02:04 |
|
revolution 15 Jul 2022, 02:12
Same encoding. No difference whatsoever.
|
|||
15 Jul 2022, 02:12 |
|
bitRAKE 15 Jul 2022, 03:17
I tend to use Z because the flag is the Z-flag; and the letter E is already too common. It's just personal preference though.
_________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
15 Jul 2022, 03:17 |
|
revolution 15 Jul 2022, 04:10
Code: cmp eax,ebx je foo ; are eax & ebx equal? dec ecx jz foo ; is ecx zero? |
|||
15 Jul 2022, 04:10 |
|
Roman 15 Jul 2022, 04:38
I reading je op code = jz
And je the same as jz |
|||
15 Jul 2022, 04:38 |
|
macomics 15 Jul 2022, 04:47
I would have asked something more interesting. For example: the difference between jp (parity, efl.pf = 1) and jpe (parity even, efl.pf = 1) or jnp (not parity, efl.pf = 0) and jpo (parity odd, efl.pf = 0) or jnb (not below, efl.cf = 0) and jnc (not carry, efl.cf = 0) and jae (above and equal, efl.cf = 0). It is exactly the same as between je (equal, efl.zf = 1) and jz (zero, efl.zf = 1).
ADD: Better study the difference between jae (above and equal, efl.cf = 0) and jge (greater and equal, efl.sf xor efl.of = 0) |
|||
15 Jul 2022, 04:47 |
|
AsmGuru62 16 Jul 2022, 23:34
revolution is right: JE/JZ used for readability of the source, but it is a same instruction.
|
|||
16 Jul 2022, 23:34 |
|
I 18 Jul 2022, 01:22
Same
Code: ja jnbe jb jnae jna jbe jnb jae jz je jnz jne jg jnle jl jnge jng jle jnl jge |
|||
18 Jul 2022, 01:22 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.