main
	ADC1_Init
	ADC1_Get_Sample
	PWM_Init
		Pwm_Calc_Period
			Get_Fosc_kHz
			Get_Fosc_Per_Cyc
			_Multiply_32x32
			_Divide_32x32
	PWM_Start
	PWM_Set_Duty
	Sound_Init
	Sound_Play
		Get_Fosc_Per_Cyc
		Get_Fosc_kHz
		_Multiply_32x32
		_Divide_32x32
		Delay_Cyc_Long
	SPI1_Init_Advanced
	Lcd_init_S65
		Lcd_CmdS65
			SPI1_Write
				SPI1_Read
		Lcd_Dat8
			SPI1_Write
				SPI1_Read
		Lcd_CsPulse
	Lcd_FillScreen
		Lcd_CmdS65
			SPI1_Write
				SPI1_Read
		Lcd_Dat8
			SPI1_Write
				SPI1_Read
		Lcd_Dat16
			SPI1_Write
				SPI1_Read
	Lcd_Print8X14
		strlen
		Lcd_PrintChar8X14
			Lcd_Point
				Lcd_CmdS65
					SPI1_Write
						SPI1_Read
				Lcd_Dat8
					SPI1_Write
						SPI1_Read
				Lcd_Dat16
					SPI1_Write
						SPI1_Read
	_Long2Float
	_Mul_FP
	_Div_FP
	WordToStr
	Lcd_Print
		strlen
		Lcd_PrintChar
			Lcd_CmdS65
				SPI1_Write
					SPI1_Read
			Lcd_Dat8
				SPI1_Write
					SPI1_Read
			Lcd_Dat16
				SPI1_Write
					SPI1_Read
	FloatToStr
		_Float2Longint
		_Compare_Le_Fp
			_Compare_Fp
		LongIntToStr
			_Modulus_32x32
			_Divide_32x32
		_Long2Float
		_Sub_FP
			_AddSub_FP
		_Mul_FP
	Get_Fosc_kHz
	LongIntToStr
		_Modulus_32x32
		_Divide_32x32
	Power_Off
		Sound_Play
			Get_Fosc_Per_Cyc
			Get_Fosc_kHz
			_Multiply_32x32
			_Divide_32x32
			Delay_Cyc_Long
		Lcd_FillScreen
			Lcd_CmdS65
				SPI1_Write
					SPI1_Read
			Lcd_Dat8
				SPI1_Write
					SPI1_Read
			Lcd_Dat16
				SPI1_Write
					SPI1_Read
		Lcd_Print
			strlen
			Lcd_PrintChar
				Lcd_CmdS65
					SPI1_Write
						SPI1_Read
				Lcd_Dat8
					SPI1_Write
						SPI1_Read
				Lcd_Dat16
					SPI1_Write
						SPI1_Read
		Lcd_Dat8
			SPI1_Write
				SPI1_Read
