09.06.2013 Views

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

Intel XENIX 286 Programmers Guide (86) - Tenox.tc

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

as: A sse m bier <strong>XENIX</strong> Programming<br />

Lexica l Conventions<br />

This section describes as lexical conventions for identifiers, constants, white space, and<br />

comments.<br />

Identifiers<br />

An identifier consists of a sequence of alphanumeric characters, including periods (.) and<br />

underscores (_) . The first character must not be numeric. By convention, the first eight<br />

characters are significant, but you can also define the maximum number of significant<br />

characters by using the -nl option. Uppercase and lowercase letters are considered<br />

distinct in identifiers.<br />

Constants<br />

A hex constant consists of a slash character (/) followed by a sequence of digits and one<br />

of the letters "a", "b", "c", "d", "e", or "f", any of which may be capitalized.<br />

A decimal constant consists simply of a sequence of digits. The constant should be<br />

representable in 15 bits, i.e., be less than 32,768.<br />

A character constant consists of one or two characters enclosed in single quotation<br />

marks ('). If a single quotation mark is used in a constant, it must be given twice to<br />

represent a single occurrence (").<br />

The following are examples of constants:<br />

Decimal<br />

10<br />

32767<br />

White Space<br />

Hexadecimal<br />

/1b<br />

/7fff<br />

Character<br />

'a'<br />

'in'<br />

Blank and tab characters may be freely interspersed between tokens but may not be<br />

used within tokens (except in character constants). A blank or tab is required to<br />

separate adj acent identifiers or constants not otherwise separated.<br />

Comments<br />

The vertical bar (I) introduces a comment, which extends to the end of the line where it<br />

appears. Comments are ignored by the assembler.<br />

7-2

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!