http://avrhelp.mcselec.com/bascom-avr.html
da mal DECLARE FUNCTION ansehen!