- 152 -
[
[
[
[
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()
{
SYSTIME time; /* Time data storing variable */
time.utime = 0; /* Sets upper time data */
time.ltime = 0; /* Sets lower time data */
set_tim( &time ); /* Sets the system time */
}
<<Example statement in assembly language>>
.include
mr100.inc
.GLB
task
_g_systim:
.WORD
1111H
.LWORD
22223333H
task:
:
PUSHM A1
set_tim
#_g_systim
: