The Art of Assembly Language
|
1.6 Character Values
HLA lets you declare one-byte ASCII character objects using the char data type. You may initialize character variables with a literal character value by surrounding the character with a pair of apostrophes. The following example demonstrates how to declare and initialize character variables in HLA:
static c: char; LetterA: char := 'A';
You can print character variables use the stdout.put routine, and you can read character variables using the stdin.get procedure call.
|