
5. TUTORIAL
B–61863E–1/06
GENERAL
28
Task information definition screen of MKC(Link control statement
creation tool)
Setting for task2 was added.
LINK CONTROL DATA(TASK) Ver1.2<OVRWRT>
TASK ENTRY NO.2 (TASK ID=11)
ENTRY ADDRESS NAME = task2
DATA SEGMENT GDT ENTRY = 35(32 – 95)
STACK SIZE = 1024
TASK LEVEL = 20(–1:HIGH/10 – 99)
TASK NAME = TASK2
[ MAIN ] [ MEMORY ] [ TASK ] [ QUIT ] [ EXIT ]
Task level of task1 is 30, task2 is 20.
Task1(PCMDI task) executes while task2(Cyclic task) waits for the
time.
D softkey.c
D task1.c
D task1.con
Same as chapter 5.4.3.
D task2.c
File name task1.c(chapter 5.5) changed to task2.c
Function name task1() changed to task2().
D task2.con
It is not necessary to bind ctl.obj, because it is already included
in task1.
File task2.con
task2.obj ,&
pmc2.lib ,&
clib2c.lib &
oj(task2.lnk) nolo nopl ec(task2) &
pr(task2.mp1) name(task2) ss(stack(0)) &
rn(code to task2_code, data to task2_data)