| back |  | Last regenerated: 2022-04-20 17:31:36 kio

# zasm - Z80 Assembler – Version 4.4

# Pseudo instructions

[<prev] [next>]

| ### if, endif
        Assembler directives: #if, #elif, #else, #endif
    Pseudo instructions: if, endifif <condition>
        ...
        Assembler directives: #if, #elif, #else, #endif
    Pseudo instructions: if, endifendif
'Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif if' starts a block of assembler instructions, which is only assembled Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif if the given <condition> is true. The <condition> must be evaluatable in pass 1. Conditional assembly may be nested. note: this may change. The 'Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif endif' instruction finishes conditional assembly as started with the 'Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif if' instruction. Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif If the <condition> was false, then all instructions and assembler directives are ignored, except the matching 'Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif endif' or nested 'Pseudo instructions: if, endif 8080 pseudo instructions: IF .. ENDIF if' … 'endif' ranges. The assembler directives '#if', '#elif', '#else' and '#endif' are handled just like 'Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif if' and 'Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif endif'. note: this may change. Normally the assembler directives with '#' should be used. Except that 'Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif if' and 'Assembler directives: #if, #elif, #else, #endif Pseudo instructions: if, endif endif' can occur in Pseudo instructions: macro, .macro, endm and .endm 8080 pseudo instructions: MACRO macros and the expanded Pseudo instructions: macro, .macro, endm and .endm 8080 pseudo instructions: MACRO macro can conditionally exclude some code. |

[<prev] [top] [next>]