Question: Question 2 : Write a program that creates an array of type bytes and store any three numbers ( hexa values ) Calculate the sum

Question 2: Write a program that creates an array of type bytesand store any three numbers(hexa values)
Calculate the sum of all three values and store in thesum variable.
Hint:
1. To access first value of array use arrayName,to access second value arrayName+1,third values arrayName+2 and so on.Here increment is by 1 because array is of type byte.
2. With MOV,ADD,SUB instruction both values can not be variables or array values. So one value you have to mov ein any register.(Register size and array type should match)

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!