flat assembler
Message board for the users of flat assembler.
Index
> Windows > FOR Loop in FASM |
Author |
|
revolution 17 Feb 2018, 10:28
if is an assembler directive. And inx is a fixed address that is never 10. So the result from if inx <> 10 is always true, thus the line jmp LC0 is always assembled and executed.
Perhaps you want to use cmp Code: cmp [inx],10 jb LC0 call [ExitProcess] LC0: |
|||
17 Feb 2018, 10:28 |
|
fasmnewbie 17 Feb 2018, 11:29
call [printf]
add esp,4 ;CDECL stack unwinding |
|||
17 Feb 2018, 11:29 |
|
Mino 17 Feb 2018, 12:05
That's perfect, thank you very much for your help
_________________ The best way to predict the future is to invent it. |
|||
17 Feb 2018, 12:05 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.