| |||||
On-Line Manuals C166 User's Guide | bit TypesThe C166 Compiler provides a bit data type that may be used for variable declarations, argument lists, and function return values. A bit variable is declared just as other C data types are declared. For example:
static bit done_flag = 0; /* bit variable */
bit testfunc ( /* bit function */
bit flag1, /* bit arguments */
bit flag2)
{
.
.
.
return (0); /* bit return value */
}
All bit variables are stored in a bit segment located in the bit memory area of the C16x/ST10. This area is only 256 bytes long, so, a maximum of 2048 bit variables may be declared within any one scope. Automatic bit variables are stored in register R14 and R15 and limited to a maximum of 32 automatic bits inside a function. Note
| ||||
| |||||