HPlogo HP Assembler Reference Manual: HP 9000 Computers > Chapter 4 Assembler Directives and Pseudo-Operations

.COPYRIGHT Directive

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

The .COPYRIGHT directive inserts a company name and date into the object module as a copyright notice.

Syntax

.COPYRIGHT "company-name [, date] "

Parameters

company-name,date

A sequence of ASCII characters, surrounded by quotation marks. The string can contain up to 256 characters. When a comma follows the company name, the next text is expected to be the date.

Discussion

The following is the standard copyright message placed in the copyright header of the object file:

Copyright company-name,date. All rights reserved. No part of this program may be photocopied, reproduced, or transmitted without prior written consent of company-name.

NOTE: This directive can appear anywhere in the source file, but may appear only once.

Example

This program places a copyright notice in the object file. Once the copyright notice is in the object file, the HP-UX utility strings can be used to access it. See strings(1) in HP-UX Reference.

        .COPYRIGHT "My Company Name, 8 Nov 1994"
.CODE
.EXPORT main,ENTRY
main
.PROC
.CALLINFO
.ENTER
LDI 2,%r5
ADDI 2,%r5,%r6
.LEAVE
.PROCEND
© 1998 Hewlett-Packard Development Company, L.P.