Renesas M3T-MR100 Manual De Usuario

Descargar
Página de 304
   
- 217 - 
1.  At the beginning of file, be sure to include "mr100.inc" which is in the system directory. 
2.  For the symbol indicating the handler start address, make the external declaration.
 
3.  Always use the RTS instruction (subroutine return instruction) to return from cyclic han-
dlers and alarm handlers. 
For examples: 
 
.INCLUDE mr100.inc 
----- 
(1) 
.GLB 
 cychand 
 ----- 
(2) 
 
cychand: 
; handler process 
 
rts 
  ----- 
(3) 
 
Figure 7.10 Example Handler Written in Assembly Language 
                                                      
51
  Use the .GLB pseudo-directive.