z80:Directives:ENDMODULE

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.

Ends a .module.

Syntax

Endmodule must directly follow a .module.


   .module People
       Count = 1
       .module Ben
           Age = 21
       .endmodule
   .endmodule
   
   .echoline "There is ", People.Count, " person."
   .echoline "Ben is ", People.Ben.Age, " years old."


Allowed inputs

Uses

It is used much like a "struct" in C, or a "class" in Java. It helps organize variables/constants into clearly defined groups.

See Also

nestmodules-endnestmodules