Renesas M3T-MR100 Network Card User Manual


 
- 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