write a program contains a subroutine that finds how many en
write a program contains a subroutine that finds how many entries are greater than $20
Solution
Mov SI,4000
Mov cx,00h
Loop1:Mov ax,[SI]
Call loop
Inc SI
JMP LOOP1
Int 03h
Loop: cmp ax,20h
Jnz loop2
Inc cx
Loop2: ret
This is the program related to 8086 microprocesor.
![write a program contains a subroutine that finds how many entries are greater than $20SolutionMov SI,4000 Mov cx,00h Loop1:Mov ax,[SI] Call loop Inc SI JMP LOOP write a program contains a subroutine that finds how many entries are greater than $20SolutionMov SI,4000 Mov cx,00h Loop1:Mov ax,[SI] Call loop Inc SI JMP LOOP](/WebImages/21/write-a-program-contains-a-subroutine-that-finds-how-many-en-1047601-1761545144-0.webp)
