- 282 -
12.3 Assembly Language Interface
When issuing a service call in the assembly language, you need to use macros prepared for invoking service
calls.
Processing in a service call invocation macro involves setting each parameter to registers and starting ex-
ecution of a service call routine by a software interrupt. If you issue service calls directly without using a ser-
vice call invocation macro, your program may not be guaranteed of compatibility with future versions of
MR100.
The table below lists the assembly language interface parameters. The values set forth in
μ
ITRON specifica-
tions are not used for the function code.
Task Management Function
Parameter ReturnParameter
ServiceCall INTNo.
FuncCode
A0
R1 R2
R3
A1 R0 R2
ista_tsk 250
8
stacd
tskid stacd -
ercd
-
sta_tsk 249
6
stacd
tskid stacd -
ercd
-
act_tsk 249
0
-
tskid -
-
ercd
-
iact_tsk 250
2
-
tskid -
-
ercd
-
ter_tsk 249
10
-
tskid -
-
ercd
-
can_act 250
4
-
tskid -
-
actcnt
-
ican_act 250
4
-
tskid -
-
actcnt
-
chg_pri 250
12
-
tskid tskpri -
ercd
-
ichg_pri 250
14
-
tskid tskpri -
ercd
-
rel_wai 249
32
-
tskid -
-
ercd
-
irel_wai 250
34
-
tskid -
-
ercd
-
ref_tst 250
20
-
tskid -
pk_rtst
ercd
-
iref_tst 250
20
-
tskid -
pk_rtst
ercd
-
ref_tsk 250
18
-
tskid -
pk_rtsk ercd
-
iref_tsk 250
18
-
tskid -
pk_rtsk ercd
-
ext_tsk 137
106
-
-
-
-
-
-
get_pri 250
16
-
tskid -
-
ercd
tskpri
iget_pri 250
16
-
tskid -
-
ercd
tskpri
Содержание Emulator System M3T-MR100
Страница 3: ...M3T MR100 4 V 1 00 User s Manual User s Manual Rev 1 00 2007 09 Real time OS for R32C 100 Series...
Страница 6: ......
Страница 14: ......
Страница 16: ...xii...
Страница 18: ......
Страница 78: ......
Страница 242: ......
Страница 269: ...253 235 entry_address alm2 236 name ID_alm2 237 exinf 0x12345678 238 239 240 241 242 End of Configuration 243...
Страница 279: ...263...
Страница 290: ......
Страница 294: ......
Страница 304: ...288...
Страница 306: ...1753 Shimonumabe Nakahara ku Kawasaki shi Kanagawa 211 8668 Japan M3T MR100 4 V 1 00 REJ10J1523 0100 User s Manual...