1.5 Character Values
HLA lets you declare 1-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 The Art of Assembly Language, 2nd 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.