flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > Anonymous labels in repeat statements |
Author |
|
Tomasz Grysztar 09 Sep 2013, 20:56
During the assembly stage in fasm labels correspond to fixed points in source, so this repeated block tries to re-define the same label three times. To get the result you expect you should use the REPT directive and allow preprocessor to generate a separate piece of source (and thus a separate label) for each repetition:
Code: rept 3 { sub ecx, 1 jl @f lodsb @@: shl eax, 8 } |
|||
09 Sep 2013, 20:56 |
|
l_inc 09 Sep 2013, 21:30
Tomasz Grysztar
Using the rare occasion of your presence I'd like to report, that the archive with the latest fasm version for Windows is incomplete. _________________ Faith is a superposition of knowledge and fallacy |
|||
09 Sep 2013, 21:30 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.