Question: 4 . Write an assembly language program to do the following tasks using a single switch. SW - ON 7 - Segment display displays number

4.Write an assembly language program to do the following tasks using a single switch.
SW-ON 7-Segment display displays number from 0F
SW-OFF 7-Segment display displays number from F0
data segment
array db 3FH,06H,5BH,4FH,66H,6DH,7DH,07H,7FH,6FH
data ends
code segment
assume cs: code, ds:data
start:
mov ax,data
mov ds,ax
mov cx,10
mov si, offset array
again:
mov al,[si]
mov dx,378h
out dx,al
call delay
inc si
loop again
jmp start
delay:
push cx
mov cx,0fh
up1:
push cx
mov cx,0fffh
up2:
nop
loop up2
pop cx
loop up1
pop cx
ret
code ends
end start
4 . Write an assembly language program to do the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!