flat assembler
Message board for the users of flat assembler.

Index > Windows > big projects

Goto page Previous  1, 2
Author
Thread Post new topic Reply to topic
realcr



Joined: 02 Apr 2007
Posts: 39
realcr
This time I have to agree with vid.
I tried using the macros and they work great.

Again thanks for the help everyone.
realcr.
Post 02 Aug 2007, 21:39
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
vid
Verbosity in development


Joined: 05 Sep 2003
Posts: 7105
Location: Slovakia
vid
realcr: there is one more thing you may miss. You cannot declare these macros inside assembly-time conditional block (if-end if). For example:

Code:
if 0
  idata {
    db 5  ;this data WILL be declared
  }
end if    

problem is that "idata" moves data to "IncludeIData" during preprocessing, before assembling. And "if" is handled during assembling, so later. Same applies to "udata" of course.

if you want to declare some data contionaly, you have to do it this way:
Code:
idata {
  if used XXX
    XXX dd 10
  end if
}    
Post 02 Aug 2007, 22:29
View user's profile Send private message Visit poster's website AIM Address MSN Messenger ICQ Number Reply with quote
realcr



Joined: 02 Apr 2007
Posts: 39
realcr
Thanks again for your help.

realcr.
Post 03 Aug 2007, 16:58
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
halyavin



Joined: 21 Aug 2004
Posts: 42
halyavin
If you need a control version system - try Subversion.
PS In KolibriOS, iglobal and uglobal macros are used for the same purpose. But they are using fix directive. May be it is a right time to upgrade them... Are idata and udata macros above work inside the others macros (iglobal and uglobal are not - we wrote special version of them for this purpose)? If no, can someone give a version that works on the first level of macro definition?
Post 10 Aug 2007, 10:19
View user's profile Send private message Visit poster's website Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  
Goto page Previous  1, 2

< 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.