1.6. 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.
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.