- 154 -
[
[[
[
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()
{
SYSTIME time; /* Time data storing variable */
get_tim( &time ); /* Refers to the system time */
}
<<Example statement in assembly language>>
.include mr100.inc
.GLB task
_g_systim: .blkb 6
task: :
PUSHM A1
get_tim #_g_systim
: