4 How would you write good for Axy5 Use indirect addressing

4) How would you write good for A[x][y+5]?

Use indirect addressing with index register

Solution

Let the no of elements in a row = 8

Code for A[x][y+5]

Now, bx has the index for the array A which is already defined the data region. So, if you want to access that memory and store 5 in it.Then, we can do it as

mov A[bx] ,5

4) How would you write good for A[x][y+5]? Use indirect addressing with index registerSolutionLet the no of elements in a row = 8 Code for A[x][y+5] Now, bx has

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site