flat assembler
Message board for the users of flat assembler.

Index > Main > Fasm 1.73 rept in rept.

Author
Thread Post new topic Reply to topic
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 19 Jan 2020, 15:14
Code:
rept 1 { some code
some code

rept 0 { some code }; this problems !
some code; this is absent in code ! Because second rept 0 !
some code; this is absent in code ! Because second rept 0 !
}
    


How use rept in another rept ?
Post 19 Jan 2020, 15:14
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20517
Location: In your JS exploiting you and your system
revolution 19 Jan 2020, 15:18
You need to escape the inner closing curly bracket:
Code:
rept 1 { some code
rept 0 { some code \} ; <--- escape this
}    
Post 19 Jan 2020, 15:18
View user's profile Send private message Visit poster's website Reply with quote
Roman



Joined: 21 Apr 2012
Posts: 1878
Roman 19 Jan 2020, 15:45
Thanks.

This code correct ?
Code:
rept 1 { some code1
rept 0 { some code2 \} 
some code3
rept 0 { some code4 \} 
some code5
rept 1 { some code6 
 some code7
rept 0 { some code8 \\}
 some code9
\} 
}       
Post 19 Jan 2020, 15:45
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 20517
Location: In your JS exploiting you and your system
revolution 19 Jan 2020, 15:50
Looks like you correctly got the hang of it. Smile
Post 19 Jan 2020, 15:50
View user's profile Send private message Visit poster's website Reply with quote
guignol



Joined: 06 Dec 2008
Posts: 763
guignol 21 Jan 2020, 07:08
weird stuff
Post 21 Jan 2020, 07:08
View user's profile Send private message Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Copyright © 1999-2025, Tomasz Grysztar. Also on GitHub, YouTube.

Website powered by rwasa.