	org 	00h 

; This block of code is to configure 8255 
	setb	8255_RD 
	setb 	8255_a0 
	setb 	8255_a1 
	clr 	8255_CS  <---------------  CS=0 should be here
        mov 	p0,#082h 
	clr 	8255_WR 
	setb 	8255_WR 
	setb 	8255_CS 

; display aah at portA 
	clr 	8255_a0 
	clr 	8255_a1 
	clr	8255_CS  <--------------- missing here is CS=0
	mov 	p0,#0aah 
	clr 	8255_WR 
	setb 	8255_WR 
	setb 	8255_CS 

; display 55h at portC 
	clr 	8255_a0 
	setb 	8255_a1 
	clr	8255_CS  <--------------- missing here is CS=0
	mov 	p0,#055h 
	clr 	8255_WR 
	setb 	8255_WR 
	setb 	8255_CS 

	sjmp$ 
