Code:
mainloop:

end 'NEVER use "end"!!!!  it destroys the chip!
this code is rather strange : you send clear and bell , Then place your chip in sleepmode ???

I hope you have left the Watchdog ON ...

to me, you should use STOP command here ...

now, why include " modedefs" and after place this line :
Code:
N9600	CON	$4054	'value for 9600 baud setting
???

Alain