10.3. 10.3 The #PRINT and #ERROR Statements

You may recall that Chapter 1 began with the typical first program most people write when learning a new language, the Hello World program. It is only fitting for this chapter to present that same program when discussing the second language of this text. Example 10-1 provides the basic Hello World program written in the HLA compile time language.

Example 10-1. The CTL "Hello World" Program.
program ctlHelloWorld;
begin ctlHelloWorld;

    #print( "Hello, World of HLA/CTL" )

end ctlHelloWorld;

The only CTL statement in this program is the #print statement. The remaining lines are needed just to keep the compiler happy (though we could have reduced the overhead to two lines by using a unit rather than a program ...

Get Art of Assembly Language, 1st Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.