$* directive

The $* (asterisk) directive allows a comment to be embedded directly into the program’s object code at compilation.

Syntax

 $* " text "
 $* ' text '
 $* \ text \

Parameters

text The comment text, enclosed within string delimiters.

Description

The $* directive directs the compiler to write the quoted text directly into the object code of the program. These comments are generally used to place copyright information or version numbers into object code before it is distributed.

Example(s)

Example 1

To place the string "HELLO" directly into the object code of a program, the code might read:

 $* "HELLO"

Example 2

In this example, the $* directive is used to place a copyright into an adventure game:
 $* " DRAGONS -- Version 1.1 "
 $* " Copyright 1989 N. West, NBM Inc. "
 EQUATE TRUE TO 1, FALSE TO 0,
    BEL TO CHAR(7)
 .
 .
 .