4.14 HLA Character Set Constants and Character Set Expressions

HLA supports literal character set constants. These cset constants make it easy to initialize cset variables at compile time and allow you to easily pass character set constants as procedure parameters. An HLA character set constant takes the following form:

{ Comma_separated_list_of_characters_and_character_ranges }

The following is an example of a simple character set holding the numeric digit characters:

{ '0', '1', '2', '3', '4', '5', '6', '7', '8', '9' }

When specifying a character set literal that has several contiguous values, HLA lets you concisely specify the values using only the starting and ending values of the range thusly:

{ '0'..'9' }

You may combine characters and various ...

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.