z80:Directives:ENUM

From Learn @ Cemetech
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

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