Operator/System Function
Stack Needed
setPXCi(), i=0,1,2,3,4,5,6,7 and X=A,B,C,D,E,F,G
0
clrPX(), X=A,B,C,D,E,F,G
0
clrPXi(), i=0,1,2,3,4,5,6,7 and X=A,B,C,D,E,F,G
0
clrPX(), X=A,B,C,D,E,F,G
0
clrPXi(), i=0,1,2,3,4,5,6,7 and X=A,B,C,D,E,F,G
0
constant array
1
Holtek C Compiler
Command arguments
The following are the arguments of the Holtek C compiler. These argu-
ments are generated and passed to the compiler by the HT-IDE according
to the project environment.
•
/? or /h
These arguments display the help messages on the screen.
•
/errlog=log_file_name
This argument informs the C compiler to put error messages into the file,
log_file_name.
•
/nologo
This argument disables the compiler to output the compiler version
information.
ASM calls C functions
Instead of using the stack, the Holtek C compiler uses RAM to pass
arguments to functions. To call C functions in an assembly file, you need to
declare the names of function and arrguments as external. The names of
C functions are translated into the name preceeding with an under score.
The names of arguments are translated into the function name following
the number of the argument occurring.
To get the return value of the C function you need to know the data size of
the return value. If its size is one byte then the return value is stored in a
register. If it is two bytes then the high byte is stored in LH and the low byte
stored in a register.
Chapter 9 Holtek C Language
113
Содержание 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 ...