
14
4. Quick Tour
Let’s try using the TM actually following a quick tour.
In the TM, you need to specify a project name and a working directory before you can
develop a project. In the quick tour, the TM is set up as shown below. This setting can be
changed as necessary.
Working directory: c:\work\proj_1
Project name: proj_1
Source file: tutor3.c
The TM does not automatically generate a directory for each project you create. Projects are
generated in the working directory. Users must create a working directory as necessary.
The source file tutor3.c was derived from the sample program of LAR Systems by altering it
for use with the M3T-PD38SIM. Processing by this program and the source code of it are
shown below.
Processing
The program comprises an infinite loop in a while statement of the main function.
The variable my_char assumes values ‘a’ to ‘z’ at random depending on the function.
When the variable my_char assumes the value ‘i’, a BRK instruction interrupt is generated
by the function.
The function brk_interrupt is executed by a BRK instruction interrupt, setting the variable
my_char to ‘.’. The statement interrupt[0x00] of this function sets the address of the function
brk_interrupt in the BRK instruction interrupt vector for the 3803 group.
Thereafter, processing in an infinite loop of the main function is repeated.
Comentários a estes Manuais