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 GNU Assembler Preprocessor - <b>string and numeric constants</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
String and numeric constants
----------------------------

   There are two ways of writing "string constants" in GASP: as literal
text, and by numeric byte value.  Specify a string literal between
double quotes (`"STR"').  Specify an individual numeric byte value as
an absolute expression between angle brackets (`<EXPR>'.  Directives
that output strings allow you to specify any number of either kind of
value, in whatever order is convenient, and concatenate the result.
(Alternate syntax mode introduces a number of alternative string
notations; Alternate macro syntax: Alternate.)   

   You can write "numeric constants" either in a specific base, or in
whatever base is currently selected (either 10, or selected by the most
recent `.RADIX').

   To write a number in a *specific base*, use the pattern `S'DDD': a
base specifier character S, followed by a single quote followed by
digits DDD.  The base specifier character matches those you can specify
with `.RADIX': `B' for base 2, `Q' for base 8, `D' for base 10, and `H'
for base 16.  (You can write this character in lower case if you
prefer.)


See Also: Alternate

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