; LED55   8 digits/positions
; ports: 26 output 80 for "mode 0": initializes?
;    'A' 22 to select LED position(s)
;    'B' 20 to output 7seg digit

	Connect LED55          	; else manually Peripherals
;initialize 8255 for mode 0.  required
	MOV        AL,80
        OUT        26,AL
                
;select display position 1 (leftmost)
        MOV        AL, 7F	 ;7F = 01111111 a zero selects corresponding digit.
        OUT        22,AL 	; port B = 22
;apply data for a 3
        MOV        AL,4F	; 4F = 7seg byte for '3'
        OUT        20,AL  	; give to selected digit

;select display position 8 (rightmost)
        MOV        AL,FE	;FE = 11111110
        OUT        22,AL

;apply data for a 6   BUT the previous 3 turns off!!!
        MOV        AL,7D	; 7d = 7seg byte for '6'
        OUT        20,AL  	

hlt
