RETURN

RETURN from subroutine

Ritorna da una subroutine

Sintassi:
return

Descrizione:

Questa istruzione deve essere inserita al termine di ogni subroutine per riprendere l'esecuzione del programma principale.

Esempio:

	org	00H
	
	call	mySub1
	....

mySub1	
	nop
	return 	

Note:

Nel PIC16F84 possono essere annidate fino ad 8 chiamate a subroutine del tipo:

	org	00H
	
	call	mySub1
	....

mySub1	
	call	mySub2
	return 	

mySub2	
	call	mySub3
	return 	

mySub3	
	return 	

Note:

Questa istruzione non influenza alcun bit di stato.

Vedi anche l'istruzione RETLW.

 
Home page

PICPOINT, SXPOINT and ELETTROSHOP (C) 1997/98 by Andrea Galizia
For comments on this web site, write to webmaster@picpoint.com
Web design by Tiziano Galizia

Pic by example (c) 1997/98 by Sergio Tanzilli & Tiziano Galizia