Question: Use Code below as reference / skeleton and provide answer based on it . . model small . stack 1 0 0 h . data

Use Code below as reference/skeleton and provide answer based on it.
.model small
.stack 100h
.data
array db 39h,31h,32h,33h,34h
msg1 db 'The number in array is : $'
.code
mov ax,@data
mov ds,ax
mov si, offset array
mov cx,5
again:
lea dx, msg1
mov ah,09h
int 21h
mov bl,[si]
mov ah,2
mov dl, bl
int 21h
mov ah,2
mov dl,0dh
int 21h
mov dl,0ah
int 21H
inc si
loop again
mov ah,4ch
int 21h
end
Exercise
1. Write an assembly program to count the number of odd numbers based on the array below:
num1 db 2,3,4,5,6,7,9
Display the result.
2. Write an assembly program to add all numbers based on the array below:
num1 db 3,1,5

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 Databases Questions!