Question: Write an assembly program for reading element of 2D array and to print it, given Address = Base Address +( rowindex * columnsize + columnindex
Write an assembly program for reading element of 2D array and to print it, given
Address = Base Address +( rowindex * columnsize + columnindex )*datasize

Classwork-2D Array . Given a 4X5 matrix, accept the row index and column index of an element, Write an assembly with a sub procedure to calculate the address offset and retrieve the value in main function without traversing through the array. Example [0,0 (0,11 0,21 (0,3) (0,4) Accept row index and column index from user (1,01 [1,1] [1,2] [13] [1,4] In the example if user enters row index as 1 and column index as 3 (2,0] [2,1] (2,2] [2,3] [2,4) (3,0) (3,1) (3,2) (3,3] [3,4]
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
