Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Have I incorporated my research into my outline effectively?

Answered: 1 week ago