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: 608
Roman
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: 17352
Location: In your JS exploiting you and your system
revolution
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: 608
Roman
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: 17352
Location: In your JS exploiting you and your system
revolution
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: 721
guignol
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-2020, Tomasz Grysztar. Also on YouTube, Twitter.

Website powered by rwasa.