Skip to content
Low-level programming · Higher-level thinking
Login Register
Forum / Requests and Feedback

for with variable

A community discussion post from the original code:zIRON forum.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

for with variable

Hi Colin.

sometimes i need to use a variable with for block, something like that

  int32 maxVal = 1000;
  int32 minVal = 500;
  for( Eax = minVal to maxVal)
   {
      ........
      ........
   }
 

http://www.freewebs.com/ogremagic/index.htm

Replies

Colin admin
Posts
928
Threads
49
Location
Bulgaria

It is now possible to do this.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

thank you Colin.

also need that

  int32 var;
  Ecx += var; 

i know it can be like that

  add Eax,var;

but as you know , heih level has it's attractive.

http://www.freewebs.com/ogremagic/index.htm

Colin admin
Posts
928
Threads
49
Location
Bulgaria

you need? you mean you would like ;)

anyways i have added this but it will need a bit testing. updated the beta.

Emil_halim member
Posts
639
Threads
104
Location
Alex, Egypt

of course this while loop will not end.:lol:

  while(i need == i would like)
   {
     ...........
   } 

again thank you.

http://www.freewebs.com/ogremagic/index.htm