Question: 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

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!