
CONTROL_ADDR_8255 equ 280BH  ; This is address of 8255 control word

mov  A,    #80H	             ;8255 control word to set all ports as O/P, mode 0
mov  DPTR, #CONTROL_ADDR_8255 ;Load 8255 address (Control word reg.) in DPTR
movx @DPTR, A		     ;Send control word to 8255
