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
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 ...