Preprocessor - Conditions (Assembler)
Used to process the assembler source conditionally. Only expression with constants are allowed.
.if .elseif .else .endif
- .if Expression
- Assembler code
- .elseif Expression
- Assembler code
- .else
- Assembler code
- .endif
.select .case .default .endselect
- .select Ausdruck
-
- Assemblercode
- .default
- Assemblercode
- .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