Difference between Holtek C and ANSI C
Keywords
The following keywords and qualifiers are not supported:
Keywords: float
double
Qualifiers: auto
register
static
Variables
All variables are static. The operator ’@’ can be used to specify the address
of variables in the general purpose data memory. The offset of the memory
starts from 0
×
20. The syntax is:
data_type varaible_name
@
memory_location
For example:
unsigned char flag @ 0
×
25; /* declare the flag in the offset
0x25 of RAM */
Constants
Holtek C supports binary constants. Any string that begins with 0b or 0B
will be treadted as a binary constant. For example:
0b101= 5
0b1110= 14
Functions
Avoid using reentrant and recursive code.
Arrays
Holtek C allows one dimensional arrays only. An array should be located in
a contiguous block of memory and must not have more than 256 elements.
Constant variables
Constaut variables must be declared in global scope and be initialized when
declared. The size of all constant variables is limited to 255 bytes in the
current version.
Chapter 9 Holtek C Language
111
Содержание 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 ...