Download THE 78000 GUIDE

Transcript
banked
EXAMPLES
The function my_func is compiled using the medium memory model. It
calls an assembly routine, my_monitor, which is located in bank 0. A
banked call is therefore required:
/* declare my_monitor */
banked void my_monitor(void);
void my_func(void)
{
/* call the monitor */
my_monitor() ;
}
bit
Declares a bit variable.
SYNTAX – RELOCATABLE ADDRESS
storagestorage-class bit identifier
SYNTAX – FIXED ADDRESS
bit identifier = constant-expression.
constant-expression.bit-selector
SYNTAX – SFR
bit identifier = sfr-identifier.
sfr-identifier.bit-selector
DESCRIPTION
The bit variable is a variable whose storage is a single bit. It may have
values 0 and 1 only. Bit variables should not be confused with the
C-standard bit-fields.
1-66