Chapter 9 Writing Machine Language Instructions and Directive Statements

9.4.15 global

Syntax

label

operation

operand

[name]

global

name(, name)...

Default settings

External reference when omitted = undefined label error

External declaration when omitted = undefined label error during linking

Functional description

This directive declares external references and external declarations.

For external references, the global directive declares that the names coded in the operand are from other files.

For external declarations, the global directive declares that the names coded in the operand can be referenced externally.

The global directive can be coded anywhere in a source programs.

Operand coding rules

Write the name coded in the label field as an operand. Generally this will be a program name. The names are delimited with commas (,). Any number of operands can be coded.

When a specified name has been coded in a label field within the program, it will be considered an external declaration. When it has been coded as operands, it will be considered an external reference.

Writing Directive Statements 173

Page 185
Image 185
Panasonic MN1030 user manual Label Operation Operand Name Global Name, name