Preprocessor - Conditions (Assembler)

Used to process the assembler source conditionally. Only expression with constants are allowed.

.if .elseif .else .endif

.select .case .default .endselect

Example

[..]
.equ  debug = 1
[..]
.If debug
  clr  R16
  rjmp mylabel
.else
  ser  R16
  rjmp mylabel
.endif
 
.set number = 22
[..]
.select number
.case 1 to 10,11
.case 22,23
.default
.endselect