Declares the beginning or end of a module.
Syntax
.endmodule
.module name
Remarks
Modules can be used to group labels into logical blocks.
WarningUnlike TASM and previous versions of Brass, all labels are automatically local in scope.
Example
.module People
Count = 2
.module Ben
Age = 21
.endmodule
.module Steve
Age = 22
.endmodule
.endmodule
.echoln "There are ", People.Count, " people."
.echoln "Ben is ", People.Ben.Age, " years old."
.echoln "Steve is ", People.Steve.Age, " years old."
Unlike TASM and previous versions of Brass, all labels are automatically local in scope.