beautypg.com

Renesas Emulator System M3T-MR100 User Manual

Page 237

background image

- 221 -

155

JSR.W

__init_sem

156

.ENDIF

157

158

.IF

__NUM_DTQ

159

.GLB __init_dtq

160

JSR.W

__init_dtq

161

.ENDIF

162

163

.IF

__NUM_VDTQ

;*A1*

164

.GLB __init_vdtq

165

JSR.W

__init_vdtq

166

.ENDIF

167

168

.IF

__NUM_MBX

169

.GLB __init_mbx

170

JSR.W

__init_mbx

171

.ENDIF

172

173

.IF

ALARM_HANDLER

174

.GLB __init_alh

175

JSR.W

__init_alh

176

.ENDIF

177

178

.IF

CYCLIC_HANDLER

179

.GLB __init_cyh

180

JSR.W

__init_cyh

181

.ENDIF

182

183

.IF

__NUM_MPF

;*A1*

184

; Fixed Memory Pool

185

.GLB __init_mpf

186

JSR.W

__init_mpf

187

.ENDIF

188

189

.IF

__NUM_MPL

;*A1*

190

; Variable Memory Pool

191

.GLB __init_mpl

192

JSR.W

__init_mpl

193

.ENDIF

194

195

196

; For PD100

197

__LAST_INITIAL

198

199

__END_INIT:

200

201

; +-----------------------------------------------------+

202

; | Start initial active task |

203

; +-----------------------------------------------------+

204

__START_TASK

205

206

.GLB __rdyq_search

207

JMP.W

__rdyq_search

208

209

; +---------------------------------------------+

210

; | Define Dummy |

211

; +---------------------------------------------+

212

.GLB __SYS_DMY_INH

213

__SYS_DMY_INH:

214

REIT

215

216

.IF CUSTOM_SYS_END

217

; +---------------------------------------------+

218

; | Syscall exit rouitne to customize

219

; +---------------------------------------------+

220

.GLB __sys_end

221

__sys_end:

222

; Customize here.

223

REIT

224

.ENDIF

225

226

; +---------------------------------------------+

227

; | exit() function |

228

; +---------------------------------------------+

229

.GLB _exit,$exit

230

_exit:

231

$exit:

232

JMP _exit

233

234

.IF USE_TIMER