Question: Question 2 : Write a program that creates an array of type bytes and store any three numbers ( hexa values ) Calculate the sum
Question : Write a program that creates an array of type bytesand store any three numbershexa values
Calculate the sum of all three values and store in thesum variable.
Hint:
To access first value of array use arrayNameto access second value arrayNamethird values arrayName and so onHere increment is by because array is of type byte.
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
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
