Contents|Index|Previous|Next

Miscellaneous commands

.ALTERNATE
Use the alternate macro syntax henceforth in the assembly. See Alternate macro syntax.

.ORG
This command is recognized, but not yet implemented. GASP generates an error message for programs that use .ORG.

.RADIX s
GASP understands numbers in any of base two, eight, ten, or sixteen. You can encode the base explicitly in any numeric GASP constant (see String and numeric constants).
If you write numbers without an explicit indication of the base, the most recent .RADIX s command determines how they are interpreted. s is a single letter, one of the following four commands.

.RADIX B
Base 2.
.RADIX Q
Base 8.
.RADIX D
Base 10. This is the original default radix.
.RADIX H
Base 16.

You may specify the argument s in lower case (any of bqdh) with the same effects.

.EXPORT name
.GLOBAL name
Declare name global (emits .global name). The two directives are synonymous.

.PROGRAM
No effect: GASP accepts this directive, and silently ignores it.

.END
Mark end of each preprocessor file. GASP issues a warning if it reaches end of file without seeing this command.

.INCLUDE "str"
Preprocess the file named by str, as if its contents appeared where the .INCLUDE directive does. GASP imposes a maximum limit of 30 stacked include files, as a sanity check.

.ALIGN size
Evaluate the absolute expression size, and emit the assembly instruction .align size using the result.