Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

2 . Write an assembly program to add all numbers based on the array below: use below code as reference / skeleton . Do not

2. Write an assembly program to add all numbers based on the array below: use below code as reference/skeleton. Do not deviate much.
num1 db 3,1,5
Display the result.
.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

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

Step: 3

blur-text-image

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

Advanced Oracle Solaris 11 System Administration

Authors: Bill Calkins

1st Edition

0133007170, 9780133007176

More Books

Students also viewed these Databases questions

Question

How can you listen critically to others public speeches?

Answered: 1 week ago

Question

2. What potential barriers would you encourage Samuel to avoid?

Answered: 1 week ago

Question

6. How would you design your ideal position?

Answered: 1 week ago