Question: TITLE Working with Arrays ;Working with Arrays INCLUDE Irvine 3 2 . inc . data arrayD DWORD 1 , 2 , 3 . code main

TITLE Working with Arrays
;Working with Arrays
INCLUDE Irvine32.inc
.data
arrayD DWORD 1,2,3
.code
main PROC
mov eax,arrayD
mov ebx,[arrayD+4]
mov ecx,[arrayD+8]
call DumpRegs ; display registers
exit
main ENDP
end main
Exercise 1- Write a program that sums the elements of a WORD array that is initialized with 080h,066h,0A5h. Store the final sum in AL register and dump the result

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