•
Example
IF debugcase
ACC1
equ 5
extern username: byte
ENDIF
In this example, the value of the variable ACC1 is set to 5 and the
username is declared as an external variable if the symbol debugcase is
evaluated as true i.e. nonzero.
→
Syntax
IFDEF
name
IFNDEF
name
•
Description
The directives IFDEF and IFNDEF test whether or not the given name has
been defined. The IFDEF directive grants assembly only if the name is a
label, a variable or a symbol. The IFNDEF directive grants assembly only
if the name has not yet been defined. The conditional assembly directives
support a nesting structure, with a maximum nesting level of 7.
•
Example
IFDEF
buf_flag
buffer DB 20 dup(?)
ENDIF
In this example, the buffer is allocated only if the buf_flag has been
previously defined by the directive EQU or the option /D of the command
line.
File control directives
→
Syntax
INCLUDE
file-name
•
Description
This directive inserts source codes from the source file given by file-name
into the current source file during assembly. HASM supports at most 7
nesting levels.
•
Example
INCLUDE macro.def
In this example, HASM inserts the source codes from the file macro.def
into the current source file.
HT-IDE User’s Guide
118
Summary of Contents for HT-IDE
Page 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Page 12: ...HT IDE User s Guide 2 ...
Page 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Page 24: ...HT IDE User s Guide 14 ...
Page 70: ...HT IDE User s Guide 60 ...
Page 76: ...HT IDE User s Guide 66 ...
Page 92: ...HT IDE User s Guide 82 ...
Page 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Page 94: ...HT IDE User s Guide 84 ...
Page 148: ...HT IDE User s Guide 138 ...
Page 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Page 154: ...HT IDE User s Guide 144 ...
Page 192: ...HT IDE User s Guide 182 ...
Page 194: ...HT IDE User s Guide 184 ...
Page 218: ...HT IDE User s Guide 208 ...
Page 235: ...P a r t V Appendix Part V Appendix 225 ...
Page 236: ...HT IDE User s Guide 226 ...
Page 250: ...HT IDE User s Guide 240 ...