Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- The Guide To Clipper - <b>clstatic declares static data</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
CLstatic           Declares static data


Syntax:        CLstatic <stype v1 i1, stype v2 i2, ...>

Description:   Declares static data where "v" is a variable and i is
               an initial value to be placed in "v."  Allowable static
               types (stype) are byte, len, int, log, long, double,
               cptr, and string.

                The cptr type causes the additional symbols v_OFF and
               v_SEG to be defined.  These symbols facilitate access to
               just the segment or just the offset portion of a
               pointer.  Static pointers can be initialized (at assembly
               time) to point to static data.

               The string type is much the same as byte except that a
               null byte is added at the end of the string.


----------------------------------- Examples --------------------------------

   In the following examples, the "len" type is used to determine the
   size of the data block between the current address and "i," where "i"
   is a previously defined label:

        CLstatic <byte msg1 "This is a test...">
        CLstatic <len msglen1 msg1>
        CLstatic <byte msg2 "this is ONLY a test.">
        CLstatic <len msglen2 msg2, len msglen3 msg1>

    This defines the following values:

        msglen1 = size of msg1
        msglen2 = size of msg2
        msglen3 = msglen1 + msglen2.


See Also: Cglobal CLextern

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson