When IC is booted, it immediately attempts to connect with the Handy Board, which should be turned on and running the
pcode_hb.s19 program.
After synchronizing with the Handy Board, IC compiles and downloads the default set of library files, and then presents the user with the `` C>'' prompt. At this prompt, either an IC command or C--language expression may be entered.
All C expressions must be ended with a semicolon. For example, to evaluate the arithmetic expression 1 + 2, type the following:
C> 1 + 2;
(The underlined portion indicates user input.) When this expression is typed, it is compiled by IC and then downloaded to the Handy Board for evaluation. The Handy Board then evaluates the compiled form and returns the result, which is printed on the IC \ console.
To evaluate a series of expressions, create a C block by beginning
with an open curly brace ``{
'' and ending with a close curly
brace ``}
''. The following example creates a local variable
i and prints the sum
i+7 to the Handy Board's
LCD screen:
C> {int i=3; printf("%d", i+7);}