z80:Directives:ENUM

From Learn @ Cemetech
Revision as of 17:41, 5 February 2016 by Maintenance script (talk | contribs) (Initial automated import)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

Declares an enumeration, a module containing a list of constants as labels.

Syntax

It is possible for two labels to have the same value. Any label without an expression or value is automatically one more than the previous label. An unlabeled first label defaults to zero.

   .enum name
       label [= expression],
       label [= expression]

See Also

endmodule