flat assembler
Message board for the users of flat assembler.
Index
> Main > Fasm 1.73 Many cmp one jz. Goto page Previous 1, 2 |
Author |
|
revolution 23 Jul 2020, 22:05
Overclick: If any flag is set upon entry then the compares have no effect, and those same flags are always set upon exit.
Also, consider making c local to avoid clashes. Code: local c ;... if c > 1 push rax pushq 0 ;reset all flags forward Last edited by revolution on 23 Jul 2020, 22:27; edited 1 time in total |
|||
23 Jul 2020, 22:05 |
|
bitRAKE 23 Jul 2020, 22:12
Overclick wrote: It doesn't seems to work as you reloading reg0 _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
23 Jul 2020, 22:12 |
|
Overclick 23 Jul 2020, 22:23
bitRAKE, operand for cmp replaced for next interaction
revolution, you right. |
|||
23 Jul 2020, 22:23 |
|
bitRAKE 23 Jul 2020, 22:27
do you mean for:
Code: compare r15, 1,2,3 compare r15, 6,7,8 _________________ ¯\(°_o)/¯ “languages are not safe - uses can be” Bjarne Stroustrup |
|||
23 Jul 2020, 22:27 |
|
Overclick 23 Jul 2020, 22:40
Edited last version, there also I'm worried about full pack of flags replaced to 0. That why I changed popfq to:
Code: pop rax shl ax,8 sahf pop rax |
|||
23 Jul 2020, 22:40 |
|
Goto page Previous 1, 2 < Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.