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 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](/WebImages/35/4-how-would-you-write-good-for-axy5-use-indirect-addressing-1103278-1761583402-0.webp)