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

.VERSION Directive

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Index

The .VERSION directive places the designated string in the current object module for version identification.

Syntax

.VERSION "info_string"

Parameters

info_string

A sequence of ASCII characters, surrounded by quotation marks. The string can contain up to 256 characters.

Discussion

The Assembler places this string in the current object module. A program can contain multiple .VERSION directives.

Once the version information is in the object file, the HP-UX utility strings can be used to access it. See strings(1) in HP-UX Reference.

NOTE: This directive can appear anywhere in the source file, and multiple occurrences are permitted.

Example

This program inserts version information into the object module, and performs subtract and deposit operations.

.CODE
.VERSION "Version 1 of This Simple Sample Program"
SUB %r19,%r20,%r19
DEP %r19,14,5,%r22
.END
© 1998 Hewlett-Packard Development Company, L.P.