→
Syntax
ROMBANK
banknum section-name [,section-name,...]
•
Description
This directive declares which sections are allocated to the specified ROM
bank. The banknum specifies the ROM bank, ranging from 0 to the
maximum bank number of the destination microcontroller, according to
the directive .CHIP. The section-name is the name of the section defined
previously in the program . More than one section can be declared in a
bank as long as the total size of the sections does not exceed the bank size
of 8K words. If this directive is not declared, bank 0 is assumed and all
CODE sections defined in this program will be in bank 0. If a CODE
section is not declared in any ROM bank, then bank 0 is assumed.
→
Syntax
END
•
Description
This directive marks the end of a program. Adding this directive to any
included file should be avoided.
→
Syntax
ORG
expression
•
Description
This directive sets the location counter to expression. The subsequent
code and data offsets begin at the new offset specified by expression. The
code or data offset is relative to the beginning of the section where the
directive ORG is defined. The attribute of a section determines the actual
value of offset, absolute or relative.
•
Example
ORG 8
mov A, 1
In this example, the statement mov A, 1 begins at location 8 in the current
section.
→
Syntax
PUBLIC
name1 [,name2 [,...]]
EXTERN
name1:type [,name2:type [, ...]]
•
Description
The PUBLIC directive marks the variable or label specified by a name
that is available to other modules in the program. The EXTERN direc-
tive, on the other hand, defines an external variable, label or symbol of
the specified name and type. The type can be one of the four types: BYTE,
WORD and BIT (these three types are for data variables), and NEAR (a
label type and used by CALL or JMP).
HT-IDE User’s Guide
122
Содержание HT-IDE
Страница 11: ...P a r t I Integrated Development Environment Part I Integrated Development Environment 1 ...
Страница 12: ...HT IDE User s Guide 2 ...
Страница 20: ...Fig 1 6 Fig 1 7 HT IDE User s Guide 10 ...
Страница 24: ...HT IDE User s Guide 14 ...
Страница 70: ...HT IDE User s Guide 60 ...
Страница 76: ...HT IDE User s Guide 66 ...
Страница 92: ...HT IDE User s Guide 82 ...
Страница 93: ...P a r t I I Development Language and Tools Part II Development Language and Tools 83 ...
Страница 94: ...HT IDE User s Guide 84 ...
Страница 148: ...HT IDE User s Guide 138 ...
Страница 150: ...Fig 12 1 Fig 12 2 HT IDE User s Guide 140 ...
Страница 154: ...HT IDE User s Guide 144 ...
Страница 192: ...HT IDE User s Guide 182 ...
Страница 194: ...HT IDE User s Guide 184 ...
Страница 218: ...HT IDE User s Guide 208 ...
Страница 235: ...P a r t V Appendix Part V Appendix 225 ...
Страница 236: ...HT IDE User s Guide 226 ...
Страница 250: ...HT IDE User s Guide 240 ...