- 179 -
sns_loc Reference CPU state
[
[[
[
C
C
L
La
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
BOOL state = sns_loc();
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
None
z
z
R
Re
et
tu
ur
rn
n
P
Pa
ar
ra
am
me
et
te
er
rs
s
BOOL state TRUE: CPU locked state
FALSE: CPU unlocked state
[
[[
[
A
As
ss
se
em
mb
bl
ly
y
l
la
an
ng
gu
ua
ag
ge
e
A
AP
PI
I
]
]]
]
.include mr100.inc
sns_loc
z
z
P
Pa
ar
ra
am
me
et
te
er
rs
s
None
z
z
R
Re
eg
gi
is
st
te
er
r
c
co
on
nt
te
en
nt
ts
s
a
af
ft
te
er
r
s
se
er
rv
vi
ic
ce
e
c
ca
al
ll
l
i
is
s
i
is
ss
su
ue
ed
d
Register name Content after service call is issued
R0 TRUE: CPU locked state
FALSE:CPUCPU unlocked state
[
[[
[
E
Er
rr
ro
or
r
c
co
od
de
e
]
]]
]
None
[
[[
[
F
Fu
un
nc
ct
ti
io
on
na
al
l
d
de
es
sc
cr
ri
ip
pt
ti
io
on
n
]
]]
]
This service call returns TRUE when the system is in a CPU locked state, or returns FALSE when the system is in a CPU
unlocked state. This service call can also be invoked from a CPU locked state.
[
[[
[
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()
{
BOOL stat;
:
stat = sns_loc();
:
}
<<Example statement in assembly language>>
.include mr100.inc
.GLB task
task: :
sns_loc
: