Ax51 User's Guide

PUBLIC Assembler Statement

Arguments
PUBLIC symbol 〚, symbol ...〛
Description

The PUBLIC statement specifies that the listed symbols may be used in other object modules. The symbols specified are marked as public in the generated object module and are used by the linker to resolve external references from other object modules.

The symbols specified must be defined in the source file in which they are marked public.

See Also

EXTERN, EXTRN

Example
PUBLIC  myvar, yourvar, othervar