        ORG     0000H
        mov	p2,#00h
MAIN:
        JNB     P1.0,ONE        
                                
        JNB     P1.1,TWO        
                               
        JNB     P1.2,THREE      
                                
        JNB     P1.3,FOUR 
        
        JNB     p1.4,five      
        jnb     p1.5,six
        jnb	p1.6,seven
        jnb     p1.7,eight                         
        SJMP    MAIN

ONE:
        MOV     P2,#0fdH       
        SJMP    MAIN           
TWO:
        MOV     P2,#0f7H        
        SJMP    MAIN           
THREE:
        MOV     P2,#0faH       
        SJMP    MAIN           
FOUR:
        MOV     P2,#0fbH        
        SJMP    MAIN           
five:
	mov     p2,#0f9h
	sjmp    MAIN
six:
	mov     p2,#0f1h
	sjmp    MAIN
seven:
	mov     p2,#0f2h
        sjmp    MAIN
eight:
	mov     p2,#0f3h
        sjmp    MAIN
        END



