- 161 -
[
[
[
[
E
E
x
x
a
a
m
m
p
p
l
l
e
e
p
p
r
r
o
o
g
g
r
r
a
a
m
m
s
s
t
t
a
a
t
t
e
e
m
m
e
e
n
n
t
t
]
]
]
]
<<Example statement in C language>>
#include <itron.h>
#include <kernel.h>
#include “kernel_id.h”
void task()
{
T_RCYC rcyc;
ER ercd;
:
ercd = ref_cyc( ID_CYC1, &rcyc );
:
}
<<Example statement in assembly language>>
.include
mr100.inc
.GLB
task
_ refcyc:
.blkb
6
task:
:
PUSH.W R2
PUSH.L A1
ref_cyc
#ID_CYC1,#_refcyc
: