
5. TUTORIAL
B–61863E–1/06
GENERAL
22
(3) Procedure for execution.
Same as described in chapter 5.3. The following steps are necessary
for operation.
> ic286 task1.c pr(task1.lis) oj(task1.obj) compact extend rom
> ic286 ctl.c pr(ctl.lis) oj(ctl.obj) compact extend rom
> bnd386 &<task1.con
> bnd386 &<tutorial.con
> bld386 tutorial.lnk oj(tutorial.dat) bf(tutorial.bld)
> oh386 tutorial.dat 386 >tutorial.hex
> map386 tutorial.dat notypecheck
Transfer to PMC.
Setting LANGUAGE ORIGIN of SYSPRM.
(4) Execution.
The screen will not change by pressing the softkey [RUN]. The
program will be executed by pressing the function key “CUSTOM”
in case of PMC–SC/SC3/SC4. In case of PMC–NB/NB2 the program
will be executed by pressing the function key “NC/PC”, if the CNC
parameter 13 bit0 is set to 1.
This application is executed by switching to PMCMDI screen.
To the application in chapter 5.4.1 the part to display softkey’s will be
added. With this application the softkey can be displayed, but reading can
not be performed.
The files are in the directory \tutorial\5–4–2.
(1) File confirmation
Please use the files (ctl.c and tutorial.bld) in the directories as listed
below.
The files in \tutorial\5–4–2\rc for PMC–SC/SC3/SC4.
The files in \tutorial\5–4–2\nb for PMC–NB/NB2.
D ctl.c Link control statement
D softkey.c Source code
D task1.c Source code
D task1.con Command file for binder
D tutorial.bld Build file
D tutorial.con Command file for binder
(2) Modification.
The difference from chapter 5.4.1 is described below.
D softkey.c
The file which contains the softkey display function has been
added. The function pl_sysinfrd() reads the PMC machine type
information and modifies the display line. Please refer the source
file softkey.c for details.
D task1.c
The call for the softkey display function has been added.
The function pl_sysinfrd() reads the CRT screen size information
and modifies the number of the displayed softkeys according to
screen size(9inch:5 softkeys, 14inch:10 softkeys). Please refer
the source file task1.c for details.
D Contents of task1.con
Softkey.obj has been added to the binder file task1.con.
In case the source is divided, the object file name of the binding
task will be added to the command file.
5.4.2
Softkey Display