- 142 -
[
[[
[
E
Ex
xa
am
mp
pl
le
e
p
pr
ro
og
gr
ra
am
m
s
st
ta
at
te
em
me
en
nt
t
]
]]
]
<<Example statement in C language>>
#include <itron.h>
#include <kernel.h>
#include “kernel_id.h”
void task()
{ T_RMPF rmpf;
ER ercd;
:
ercd = ref_mpf( ID_MPF1, &rmpf );
:
}
<<Example statement in assembly language>>
.include mr100.inc
.GLB task
_ refmpf: .blkb 6
task: :
PUSH.W R2
PUSH.L A1
ref_mpf #ID_MPF1,#_refmpf
: