setup:
	;skip transmission of data, there is none anyway
	#NO_DATA
	
	;increase fequency to that of transmitter
	SETFREQ M16
	
	;blink LED to alert that the program is beginning
	HIGH C.2
	PAUSE 500
	
	LOW C.2
	PAUSE 500
	
	GOTO main

main:
	;wait for data to be transmitted
	SERIN C.1, N600_4, ($AA, $BB, $CC), b0
	
	;convert value from ASCII representation
	b0 = b0 - 48
	
	;if the data is uncorrupted, fire rocket
	IF b0 = 1 THEN
		HIGH C.2
		HIGH C.4
		PAUSE 2000
		
		LOW C.2
		LOW C.4
		PAUSE 50
	END IF
	
	;debug the received value
	SERTXD (b0, #b0, CR, LF)
	GOTO main