;Blank_F84.asm
                   	 ;Project: 
List P = 16F84
#include <p16F84.inc>
__CONFIG 1Bh       	 ;_CP_OFF & _PWRTE_ON & _WDT_OFF & _RC_OSC

			;PIC6F84 Files  
			;07h Not used
			;08h Not used
			;09h Not used
			;0Ah Not used
			;0Bh Not used
			;0Ch General Purpose
			;0Dh General Purpose
			;0Eh General Purpose
			;0Fh General Purpose
			;10h General Purpose
			;11h General Purpose
			;12h General Purpose
			;13h General Purpose			
			;14h General Purpose 
			;15h General Purpose
			;16h General Purpose 
			;17h General Purpose
			;18h General Purpose
			;19h General Purpose
			;1Ah delay routines etc
			;1Bh delay routines etc
			;1Ch delay routines etc
			;1Dh for long delay etc
			;1Eh for flag bits etc
			;1Fh for flag bits etc
			


Start		ORG 0		;Load the code at address 000
SetUp		BSF 03,5	;Select Bank1
		MOVLW 03	;Put 0000 0011 into W	
		MOVWF 05    	;Load TrisA. Make RA0, RA1 input. Others output
		MOVLW 08	;Put 0000 1000 into W		
		MOVWF 06    	;Load TrisB file. Make RB3 input. Others output	
		BCF 03,5	;Select Programming area -  Bank0	
		CLRF 06		;Clear Port B of junk 
		GOTO Main
		
Table1	ADDWF 02,1
		RETLW 08
		RETLW 01Ah
		RETLW 0BEh
		RETLW 0FFh

Delay1	XXX			;Look at input line
		XXX		;Input LOW
		RETLW 00

Main		XXX
		BTFSS 06,3	;Test the input line
		XXX
		XXX
		CALL Delay1
		XXX	
		BSF 06,0	;Make the lowest output HIGH
		XXX
		CALL Table1
		XXX
		GOTO Main

		END
