Question: 2 . Write an assembly program to add all numbers based on the array below: use below code as reference / skeleton . Do not
Write an assembly program to add all numbers based on the array below: use below code as referenceskeleton Do not deviate much.
num db
Display the result.
stack h
data
array db hhhhh
msg db 'The number in array is : $
code
mov ax@data
mov dsax
mov si offset array
mov cx
again:
lea dx msg
mov ahh
int h
mov blsi
mov ah
mov dl bl
int h
mov ah
mov dldh
int h
mov dlah
int H
inc si
loop again
mov ahch
int h
end
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
