Navigation bar
  Start Previous page
 24 of 206 
Next page End  

ZBasic Language Reference
16
ZX Microcontroller Family
It is important to note that for VM devices, the speed selection is made part of the download image and is
written to Persistent Memory when the code is downloaded.  If, later, a program is downloaded that does
not contain Option Com1Speed directive, the Persistent Memory location containing the Com1 speed
indicator will be unchanged from the earlier setting.
Example
Option Com1Speed 9600
Option AtnChar
Option AtnChar [ <constant-expression> | Default ]
Default: &H00
This directive can be used to specify a special character that can be used instead of DTR signaling to
perform downloads to a ZX device.  This is useful in situations where the communication channel does
not support DTR or is not capable of toggling DTR fast enough to be recognized as an attention signal. 
The range of allowable values for the ATN character is 0 to 31 (&H00 to &H1F) with the value of zero
serving as the disabling value.
It is important to note that for VM devices, the ATN character is made part of the download image and is
written to Persistent Memory when the code is downloaded.  If, later, a program is downloaded that does
not contain Option AtnChar directive, the Persistent memory location containing the ATN character value
will be unchanged from the earlier setting.
Example
Option AtnChar &H04
Option Include
Option Include [ Public | Private ] <item-list>
Default: none
This directive can be used to add one or more pre-defined structures to the application.  If the Private
keyword is present, the structures will be private to the module in which the directive appears; otherwise
the structures will be public.
The <item-list> element consists of one or more names of pre-defined structures separated by commas. 
Example
Option Include Private Port_t, Timer16_t
Option Objects
Option Objects
Default: none
This option enables the ZBasic object-oriented extensions.  If used, it must appear for the first time in the
first module compiled.  If it does appear in the first module compiled then its presence in other modules is
silently ignored.  This option implicitly enables subroutine/function overloads as well.
Example
Option Objects
Previous page Top Next page