dot-case.md

June 3, 2026 ยท View on GitHub

Asmc Macro Assembler Reference

.CASE

.CASE [[ <name> ]] expression

.CASE begins a case statement that compares an ordinal expression's value against one or more selectors. Each selector may be a constant, a subrange, or a comma-separated list of constants and subranges. The selector field is separated from the action field by a colon or a newline. In a control-table switch (a .SWITCH statement without arguments), expression is evaluated at runtime.

name is an optional name for the case label.

See Also

Conditional Control Flow