Program Structure

Symbols and Constants

Table 2-1

Integer Constants

 

 

 

 

 

 

 

 

 

 

Signed

Unsigned

 

 

 

 

 

 

 

Decimal

-2147483648

0

 

 

 

through

through

 

 

 

2147483647

4294967295

 

 

 

 

 

 

 

Octal

020000000000

0

 

 

 

through

through

 

 

 

017777777777

037777777777

 

 

 

 

 

 

 

Hexadecimal

0x80000000

0

 

 

 

through

through

 

 

 

0x7FFFFFFF

0xFFFFFFFF

 

 

 

 

 

The period (.) is a special symbol reserved to denote the current offset of the location counter. It is useful in address expressions to refer to a location relative to the current instruction or data word. This symbol is considered relocatable, and can be used anywhere a relocatable symbol can be used, with the exception of the label field.

The period cannot be used in an expression involving another label, such as sym+., sym-., .+sym, or .-sym. It can be used in an expression that has only a constant, such as .+8 or .-8.

22

Chapter 2

Page 22
Image 22
HP UX Developer Tools manual Integer Constants Signed Unsigned