pTAL Guidelines for TAL Programmers

Hewlett-Packard Company527256-002
i
pTAL Guidelines for TAL
Programmers
Glossary Index Examples Figures Tables
What’s New in This Manual ix
Manual Information ix
New and Changed Information ix
About This Manual xi
Audience xi
Related Documentation xi
Notation Conventions xii
1. Overview
Why a New Language? 1-1
pTAL 1-1
Compiling pTAL Programs 1-2
Deciding Whether to Convert to pTAL 1-3
TAL 1-5
Unsupported TAL Features 1-6
Restricted TAL Features 1-6
2. Coding Guidelines
Guidelines Summary 2-1
Compilers
2-5
Conditional Compilation
2-5
DO_PTAL Directive 2-6
Variables 2-6
Referencing Variables and Parameters 2-6
Equivalenced Variables and Memory 2-8
Arithmetic Operations 2-9
Signed and Unsigned 16-Bit Addition, Subtraction, and Negation 2-9
Overflow Traps 2-10
Pointers and Addresses 2-10
@ Operator Applied to Variables 2-13
32-Bit Addresses 2-14
Addresses and Integer Variables 2-14