
5. TUTORIAL
B–61863E–1/06
GENERAL
24
With this application display and reading of softkey can be performed.
The files are in the directory \tutorial\5–4–3.
(1) File confirmation.
Please use the files (ctl.c and tutorial.bld) in the directories as listed
below.
The files in \tutorial\5–4–3\rc for PMC–SC/SC3/SC4.
The files in \tutorial\5–4–3\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
D tutorial.h Header file
(2) Modification.
The difference from chapter 5.4.2 is described below.
D task1.c
The part to read the softkey for changing the display was added.
In case of the 9inch CRT the softkey display switches back and
forth by pressing the menu continue key (first softkey on the right
side).
D tutorial.h
The macro definition for task1.c was added to tutorial.h.
(3) Procedure for execution.
The procedure is the same as described in chapter 5.4.2. The
necessary operations are described below.
> ic286 task1.c pr(task1.lis) oj(task1.obj) compact extend rom
> ic286 softkey.c pr(softkey.lis) oj(softkey.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.
In case of the 9inch CRT the softkey display switches by pressing the
menu continue key. By pressing the softkeys or function keys, a
message will be displayed.
Example)
By pressing softkey [A] “SOFTKEY A” will be displayed.
By pressing the function key,”HELLO, WORLD!” will be displayed.
5.4.3
Read Input Key and
Change Display Screen