4.2 HLA Constant and Value Declarations
HLA's const
and val
sections let you declare symbolic constants. The const
section lets you declare identifiers whose value is constant throughout compilation and runtime; the val
section lets you declare symbolic constants whose values can change at compile time but whose values are constant at runtime (that is, the same name can have a different value at several points in the source code, but the value of a val
symbol at a given point in the program cannot change while the program is running).
The const
section appears in the same area of your program as the static
, readonly
, storage
, and var
sections. It begins with the const
reserved word and has a syntax that is nearly identical to the readonly
section; ...
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.