The PUBLIC directive makes defined symbols available to other programs that are to be linked. The information referred to by the PUBLIC directive is passed to the linker.
Syntax
PUBLIC [Language-Name] Identifier[,...]Remarks
Identifier can be a variable or a label (including PROC labels). Register names and any symbols defined by EQU or = to floating-point numbers or integers larger than 4 bytes are incorrect entries.
PUBLIC GETINFO ;Make GETINFO visible to linker GETINFO PROC FAR PUSH BP ;Save caller's register MOV BP,SP ;Get address of parameters ;BODY OF SUBROUTINE POP BP ;restore caller's register RET ;return to caller GETINFO ENDP