Question: Write a procedure, getElementFromArray, that: - receives 2 parameters: EAX for row and EBX for col. - Calculates the byte offset to the element in
Write a procedure, getElementFromArray, that:
receives parameters: EAX for row and EBX for col.
Calculates the byte offset to the element in fieldOfKittens using the row, col and also the constants NUMROWS and NUMCOLS
loads ECX with the value from the fieldOfKittens array
Starting File Tester
In Canvas, the main.asm that is attached to the assignment has a shell for the getElementFromArray procedure. The main procedure calls the getElementFromArray procedure times and each time displays the value returned see sample runs
Grading Rubric
Procedure named getElementFromArray that calculates the byte offset of the element in the fieldOfKittens using EAX and EBX as row and column references respectively, and loading ECX with the value from the array points
On Monday I mentioned where the code for this procedure can be obtained basically you are copying sim lines of code and changing sim lines
Comments
A Comment with your name around line points
comment for each command or small logical group of statements in the getElementFromArray procedure points
wedge wedge On Monday I mentioned where the code for this procedure can be obtained the comments are already on those lines of code and only sim of those comments have to be changed
There should not be a need to create any variables, but if you do "meaningful variable names" points
Neat Indenting body of procedure neatly indented points
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
