
Equality operators .................................................................................. 91
Logical operators .................................................................................... 91
Bitwise operators .................................................................................... 92
Assignment operators ............................................................................ 92
Increment and decrement operators ..................................................... 92
Conditional operators ............................................................................. 93
Comma operator ..................................................................................... 93
Precedence and associativity of operators ............................................ 93
Type conversions ..................................................................................... 94
Program Control Flow .................................................................................. 95
Functions ...................................................................................................... 98
Classic form ............................................................................................ 98
Modern form ........................................................................................... 99
Pointers and Arrays ................................................................................... 100
Pointers ................................................................................................. 100
Arrays .................................................................................................... 100
Structures and Unions ............................................................................... 101
Preprocessor Directives ............................................................................. 102
Predefined names ................................................................................. 108
Holtek C Compiler Specifics ...................................................................... 108
Using multiple souce files .................................................................... 108
Input/Output ports system calls .......................................................... 109
Reset and interrupts ............................................................................ 110
Difference between Holtek C and ANSI C ................................................. 111
Keywords ................................................................................................ 111
Variables ................................................................................................. 111
Constants ............................................................................................... 111
Functions ................................................................................................ 111
Arrays ..................................................................................................... 111
Constant variables ................................................................................ 111
Initial value ........................................................................................... 112
Multiply/Divide/Modulus ..................................................................... 112
Stack ...................................................................................................... 112
Holtek C Compiler ...................................................................................... 113
Command arguments ........................................................................... 113
ASM calls C functions .......................................................................... 113
Chapter 10 Assembly Language and Cross Assembler ......... 115
Notational Conventions ............................................................................. 115
Statement Syntax ....................................................................................... 116
Name ..................................................................................................... 116
Operation .............................................................................................. 117
Operand ................................................................................................. 117
HT-IDE User’s Guide
iv