flat assembler
Message board for the users of flat assembler.

Index > Macroinstructions > help : about org

Author
Thread Post new topic Reply to topic
fasmfan2008



Joined: 28 Oct 2007
Posts: 13
fasmfan2008
Code:
macro korg val{
      if val eq
           if ~ org.value eq
                   org org.value + ($ - org.newvalue)
          end if
      else
                if org.value eq
                     org.value = $
               else
                        org.value = org.value + ($ - org.newvalue)
          end if
              org val
     end if
      org.newvalue = $
}
    



1> org.value = org.value + ($ - org.newvalue)
1>error: undefined symbol 'org.value'.
Post 07 Jul 2009, 01:04
View user's profile Send private message Reply with quote
fasmfan2008



Joined: 28 Oct 2007
Posts: 13
fasmfan2008
Very Happy ok

Code:
macro korg val{
      if ~defined org_value
               org_value = $
               org_newvalue = $
    end if
      org_value = org_value + ($ - org_newvalue) 
 if val eq
           org org_value
       else
                org val
     end if
      org_newvalue = $
}
    
Post 07 Jul 2009, 01:51
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.

Powered by rwasa.