ON 20071207@6:12:32 PM at page: http://techref.massmind.org/intel/32bit/32bitx86tips.htm#39423.7381365741 James Newton[JMN-EFP-786] removed post 39423.7381365741 with comment: 'No homework.' |Delete 'emwa231@hotmail.com asks:
please can i get help for the following assignment with comment's,and i will glad if i get response'
Having defined a 4x4 matrix called table such as
.data
table DWORD 1,3,-3,7
DWORD 2,-5,3,0
DWORD 1,7,-2,8
DWORD-1,5,0,6
Write the code that calculates and displays
1.The sum of the third row
2.The sum of the fourth column.
3.The sum along the minor diagonal
Hint: To access an element of this table, use the registers ecx and edx to hold the row and the column number,respectively.Then
lea esi[table-4+ecx*4+edx]
gets the address of the selected matrix element into the esi.Follow this with the instruction
add eax,[esi]