Go to the first, previous, next, last section, table of contents.

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; see section Alternate macro syntax.)

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


Go to the first, previous, next, last section, table of contents.