For the CODE section, the byte address is in a one instruction unit (14 bits
for HT48100). BYTE aligns the section at any instruction address, WORD
aligns the section at any even instruction address, PARA aligns the
section at any instruction address which is a multiple of 16, and PAGE
aligns the section at any instruction address with a multiple of 256.
For DATA sections, the byte address is in one byte units (8 bits/byte).
BYTE aligns the section at any byte address, WORD aligns the section
at any even address, PARA aligns the section at any address which is a
multiple of 16, and PAGE aligns the section at any address which is a
multiple of 256.
The optional combine type defines the way of combining sections having
the same name (section and class name). It can be any one of the
following:
–
Common
Creates overlapping sections by placing the start of all sections with the
same complete name at the same address. The length of the resulting
area is the length of the longest section.
–
AT address
Causes all label and variable addresses defined in a section to be
relative to the given address. The address can be any valid expression
except a forward reference. It is an absolute address in a specified
ROM/RAM bank and must be within the ROM/RAM range.
If no combine type is given, the section is combinative, i.e., this section
can be concatenated with all sections having the same complete name to
form a single, contiguous section.
The class type defines the sections that are to be loaded in the contiguous
memory. Sections with the same class name are loaded into the memory
one after another. The class name ’CODE’ is used for sections stored in
ROM, and the class name ’DATA’ is used for sections stored in RAM. The
complete name of a section consists of a section name and a class name.
The named section includes all codes and data below (after) it until the
next section is defined.
Note
Multiple sections can be defined in a source file, but any two sections with
the same complete name are not permitted.
Chapter 10 Assembly Language and Cross Assembler
121
Содержание 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 ...