flat assembler
Message board for the users of flat assembler.

Index > Compiler Internals > How to write rept with count const?

Author
Thread Post new topic Reply to topic
KIRK



Joined: 05 Dec 2007
Posts: 17
Location: Russia
KIRK
I want to write something like this:
Code:
REPEAT_COUNT = 1000 
rept REPEAT_COUNT
     {
       local label
       label:
     }    
Post 25 Sep 2011, 16:40
View user's profile Send private message Reply with quote
cod3b453



Joined: 25 Aug 2004
Posts: 619
cod3b453
You can use the equ directive instead:
Code:
REPEAT_COUNT equ 1000  
rept REPEAT_COUNT 
     { 
       local label 
       label: 
     }    
Post 25 Sep 2011, 18:10
View user's profile Send private message Reply with quote
KIRK



Joined: 05 Dec 2007
Posts: 17
Location: Russia
KIRK
cod3b453, thanks very much!
Post 25 Sep 2011, 18:35
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.